summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm17
1 files changed, 5 insertions, 12 deletions
diff --git a/macros.asm b/macros.asm
index 147468cdd..b91fa2e3d 100644
--- a/macros.asm
+++ b/macros.asm
@@ -14,6 +14,7 @@ INCLUDE "macros/predef.asm"
INCLUDE "macros/rst.asm"
INCLUDE "macros/mobile.asm"
INCLUDE "macros/trainer.asm"
+INCLUDE "macros/map_setup.asm"
@@ -90,12 +91,16 @@ lb: MACRO ; r, hi, lo
ld \1, (\2) << 8 + (\3)
ENDM
+ln: MACRO ; r, hi, lo
+ ld \1, (\2) << 4 + (\3)
+ ENDM
bccoord equs "coord bc,"
decoord equs "coord de,"
hlcoord equs "coord hl,"
coord: MACRO
+; register, x, y[, origin]
if _NARG < 4
ld \1, TileMap + SCREEN_WIDTH * (\3) + (\2)
else
@@ -165,16 +170,4 @@ bcd: MACRO
endr
ENDM
-ln: MACRO
- if _NARG == 5
- lb \1, \2 << 4 + \3, \4 << 4 + \5
- else
- if _NARG == 3
- ld \1, \2 << 4 + \3
- else
- fail "incorrect number of arguments for ln"
- endc
- endc
-ENDM
-
tile EQUS "+ $10 *"