Skip to content

Commit

Permalink
- Return to loader when attempted to be loaded on a Wii in Wii Mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Aug 13, 2024
1 parent 7b858ea commit 7b3bfc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cube/packer/source/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ startup:
ori r0, r0, 0x000C
mtear r0

lis r3, 0x0C00
li r4, 0x3000
li r0, 1
ecowx r0, r4, r3
eciwx r0, r4, r3
lis r5, 0x1000
eciwx r0, r0, r5
eciwx r0, r4, r3
andi. r0, r0, 1
ecowx r0, r4, r3

li r0, 0x1800
mtlr r0
beqlr

li r3, 0
lis r0, reset@h + 0x48000002
ori r0, r0, reset@l + 0x48000002
Expand Down

0 comments on commit 7b3bfc7

Please sign in to comment.