diff options
author | yenatch <yenatch@gmail.com> | 2014-06-16 13:25:46 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-06-16 13:25:46 -0700 |
commit | d10108a066c102bf2d167ac656d79308e41f304e (patch) | |
tree | 8e23833f9b0b2cbffe7114212da8af13e0ef85d1 /macros.asm | |
parent | 94dc6955431171d4dba5833e5784e102dd045b49 (diff) |
Use macros to define predefs.
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -138,13 +138,23 @@ TX_BCD: MACRO ENDM ; Predef macro. -PREDEF: MACRO - ld a, (\1 - PredefPointers) / 3 +add_predef: MACRO +\1Predef:: + db BANK(\1) + dw \1 + ENDM + +predef_id: MACRO + ld a, (\1Predef - PredefPointers) / 3 + ENDM + +predef: MACRO + predef_id \1 call Predef ENDM -PREDEF_JUMP: MACRO - ld a, (\1 - PredefPointers) / 3 +predef_jump: MACRO + predef_id \1 jp Predef ENDM |