diff options
author | Sanky <gsanky@gmail.com> | 2012-03-07 00:21:11 +0100 |
---|---|---|
committer | Sanky <gsanky@gmail.com> | 2012-03-07 00:21:11 +0100 |
commit | 158d46dd6619343842ebbf44ae9f0cfaa3bf8fe8 (patch) | |
tree | 7a3f12c9db39d15b3b07cc595bace4da8b615290 /constants.asm | |
parent | 3cddafc519877869e76868f6acd54a19e5cfb2be (diff) |
Redfining predefs using macros: PREDEF and PREDEF_JUMP.
hg-commit-id: 80a61a3816bc
Diffstat (limited to 'constants.asm')
-rw-r--r-- | constants.asm | 11 |
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 |