SMS-GCI-Loader/gecko/code/gecko-return.s
sup39 23e5c658ad Add script to build gecko code of GCI Loader
- GCI Loader: gecko-gosub + 06 bin + 04 bl to onReadOptionBlock
- place GCI Loader code at 817FE800 since [817FEEA0, 81800000) is used
  by system
- place buffer at 817F1800 (instead of 817F1000+4) since there seems to
  be some alignment issue
- Assume file size == 0x2000*6 since fileInfo->length seems to be 0
2023-02-11 19:36:44 +09:00

6 lines
180 B
ArmAsm

## restore r15 (pointer to current gecko instruction)
lis r3, GCTDST+4@ha
lwz r15, GCTDST+4@l(r3)
## update r15 = restored r15 - r4(this C0 code size)
sub r15, r15, r4
blr