summaryrefslogtreecommitdiff
path: root/constants.asm
diff options
context:
space:
mode:
Diffstat (limited to 'constants.asm')
-rw-r--r--constants.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm
index cacff383..09299cac 100644
--- a/constants.asm
+++ b/constants.asm
@@ -87,6 +87,17 @@ TX_RAM: MACRO
dw \1
ENDM
+; Predef macro.
+PREDEF: MACRO
+ ld a, (\1 - PredefPointers) / 3
+ call Predef
+ ENDM
+
+PREDEF_JUMP: MACRO
+ ld a, (\1 - PredefPointers) / 3
+ jp Predef
+ ENDM
+
; wram locations
; the tiles of the row or column to be redrawn by RedrawExposedScreenEdge