summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-08-16 22:35:31 -0400
committeryenatch <yenatch@gmail.com>2013-08-16 22:35:31 -0400
commit570d2ab1cf6576a77a801001ef2e7caa5d034828 (patch)
treebfbb23b728637816996f77b83f370866aaebc9d3
parent4398dde8cb96a2ee62a0fd995eba68e17a108a3b (diff)
dt: three-byte value
used for pokemon exp
-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