diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-10-13 11:37:10 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-10-13 12:11:06 -0400 |
commit | 8c2766e1b955b6b23a78d014340f51a281b2a114 (patch) | |
tree | 81415cc9831033187825f5c8b28d9e2b14ffa07a /macros.asm | |
parent | 0c39f6e273910be3b0ed9317e73c40615d789ae3 (diff) |
ldtile and dwtile macros added and globally implemented
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 15 |
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 + |