From 158d46dd6619343842ebbf44ae9f0cfaa3bf8fe8 Mon Sep 17 00:00:00 2001 From: Sanky Date: Wed, 7 Mar 2012 00:21:11 +0100 Subject: Redfining predefs using macros: PREDEF and PREDEF_JUMP. hg-commit-id: 80a61a3816bc --- constants.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'constants.asm') 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 -- cgit v1.3.1-sl0p