summaryrefslogtreecommitdiff
path: root/macros/data.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/data.asm')
-rw-r--r--macros/data.asm14
1 files changed, 3 insertions, 11 deletions
diff --git a/macros/data.asm b/macros/data.asm
index 3e1177f78..1970c8c3c 100644
--- a/macros/data.asm
+++ b/macros/data.asm
@@ -70,24 +70,16 @@ rept _NARG / 4
endr
ENDM
-dx: MACRO
-x = 8 * ((\1) - 1)
-rept \1
- db ((\2) >> x) & $ff
-x = x - 8
-endr
-ENDM
-
dt: MACRO ; three-byte (big-endian)
- dx 3, \1
+ db LOW((\1) >> 16), HIGH(\1), LOW(\1)
ENDM
dd: MACRO ; four-byte (big-endian)
- dx 4, \1
+ db HIGH((\1) >> 16), LOW((\1) >> 16), HIGH(\1), LOW(\1)
ENDM
bigdw: MACRO ; big-endian word
- dx 2, \1 ; db HIGH(\1), LOW(\1)
+ db HIGH(\1), LOW(\1)
ENDM
dba: MACRO ; dbw bank, address