diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-12-26 21:59:03 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-12-26 21:59:03 -0500 |
commit | f030315b1fd797aa6765ac8cd8c35c0cd9b600a0 (patch) | |
tree | da461ae6040d2a2f0e0b3a95e837a6c5e99e2fd6 /lib/mobile/main.asm | |
parent | 2bd45ca574aab251b91c24837b102c9c2a5e76a0 (diff) |
jumptable macro repurposed
Diffstat (limited to 'lib/mobile/main.asm')
-rw-r--r-- | lib/mobile/main.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mobile/main.asm b/lib/mobile/main.asm index 753a858a4..3c7066938 100644 --- a/lib/mobile/main.asm +++ b/lib/mobile/main.asm @@ -74,7 +74,7 @@ Function110029: ; 110029 (44:4029) Function110030:: ; 110030 (44:4030) ; Use the byte at $c988 as a parameter -; for a jumptable. +; for a dw. ; If [$c988] in {12, 14, 16}, ; clear [$c835]. push de @@ -91,7 +91,7 @@ Function110030:: ; 110030 (44:4030) .noreset ld d, $0 ld e, a - ld hl, .jumptable + ld hl, .dw add hl, de ld a, [hli] ld [$c988], a @@ -114,10 +114,10 @@ Function110030:: ; 110030 (44:4030) ld a, [hli] ld h, [hl] ld l, a - ret ; indirectly jump to the function loaded from the jumptable, which returns to Function3e60. + ret ; indirectly jump to the function loaded from the dw, which returns to Function3e60. ; 110070 (44:4070) -.jumptable: ; 110070 +.dw: ; 110070 dw Function110115 dw Function110236 dw Function110291 |