From 8c2766e1b955b6b23a78d014340f51a281b2a114 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 13 Oct 2015 11:37:10 -0400 Subject: ldtile and dwtile macros added and globally implemented --- macros.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'macros.asm') 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 + -- cgit v1.2.3