You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Identify more labels, and use the jumptable macro when possible
This commit is contained in:
@@ -432,16 +432,7 @@ Pokegear_FinishTilemap:
|
||||
ret
|
||||
|
||||
PokegearJumptable:
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Jumptable
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable .Jumptable, wJumptableIndex
|
||||
|
||||
.Jumptable:
|
||||
; entries correspond to POKEGEARSTATE_* constants
|
||||
|
@@ -16,16 +16,7 @@ PlayRadioShow:
|
||||
ld [wCurRadioLine], a
|
||||
.ok
|
||||
; Jump to the currently loaded station. The index to which we need to jump is in wCurRadioLine.
|
||||
ld a, [wCurRadioLine]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, RadioJumptable
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
jumptable RadioJumptable, wCurRadioLine
|
||||
|
||||
RadioJumptable:
|
||||
; entries correspond to constants/radio_constants.asm
|
||||
|
Reference in New Issue
Block a user