summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--constants.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm
index 02f402bcb..e929a48f2 100644
--- a/constants.asm
+++ b/constants.asm
@@ -36,6 +36,12 @@ dn: MACRO
db \1 << 4 + \2
ENDM
+dt: MACRO ; three-byte (big-endian)
+ db (\1 >> 16) & $ff
+ db (\1 >> 8) & $ff
+ db \1 & $ff
+ ENDM
+
bigdw: MACRO ; big-endian word
dw ((\1)/$100) + (((\1)&$ff)*$100)
ENDM