Identify more labels, and use the jumptable macro when possible

This commit is contained in:
Rangi
2020-07-01 13:13:49 -04:00
parent e171c84c29
commit fce6243b43
26 changed files with 41 additions and 253 deletions

View File

@ -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