summaryrefslogtreecommitdiff
path: root/home/jumptable.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/jumptable.asm')
-rw-r--r--home/jumptable.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/jumptable.asm b/home/jumptable.asm
index 7aba401..03947bf 100644
--- a/home/jumptable.asm
+++ b/home/jumptable.asm
@@ -2,17 +2,16 @@ INCLUDE "constants.asm"
SECTION "home/jumptable.asm", ROM0
-CallJumptable:: ; 35cd (0:35cd)
+CallJumptable::
; CallJumptable
; Call function whose pointer is
; at index a in 2-byte pointer table
; pointed to by hl.
; Clobbers: a, hl
;
-; This ultimately wound up at rst $28 in
-; GSC
+; This became rst $28 in final GSC.
push de
- ld d, $00
+ ld d, 0
ld e, a
add hl, de
add hl, de
@@ -34,10 +33,11 @@ CallFar_atHL::
ld a, [hli]
ld h, [hl]
ld l, a
- call .jump
+ call ._hl_
pop hl
ld a, h
call Bankswitch
ret
-.jump: ; 35eb (0:35eb)
- jp hl \ No newline at end of file
+
+._hl_:
+ jp hl