diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:13:49 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:13:49 -0400 |
commit | fce6243b432d1df1b4ab244023be738a54dbe8f3 (patch) | |
tree | c93b0989254b15e86aa0ae07ab255d5bb5fd0afb /macros/code.asm | |
parent | e171c84c2990df2c1a3773885297089869a0fd58 (diff) |
Identify more labels, and use the jumptable macro when possible
Diffstat (limited to 'macros/code.asm')
-rw-r--r-- | macros/code.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/code.asm b/macros/code.asm index c92e7132f..9de3dd1ec 100644 --- a/macros/code.asm +++ b/macros/code.asm @@ -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 |