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:
@ -11,7 +11,11 @@ ENDM
|
||||
; Design patterns
|
||||
|
||||
jumptable: MACRO
|
||||
if "\2" == "hl"
|
||||
ld a, [hl]
|
||||
else
|
||||
ld a, [\2]
|
||||
endc
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, \1
|
||||
|
Reference in New Issue
Block a user