summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index ca62491eb..a50c92b69 100644
--- a/macros.asm
+++ b/macros.asm
@@ -161,3 +161,18 @@ ln: MACRO
endc
endc
ENDM
+
+dwtile: MACRO
+ dw (\1 << 4) + \2
+ if _NARG > 2
+ rept _NARG + -2
+ dw \3
+ shift
+ endr
+ endc
+ENDM
+
+ldtile: MACRO
+ ld \1, (\2 << 4) + \3
+ENDM
+