ref: 570d2ab1cf6576a77a801001ef2e7caa5d034828
parent: 4398dde8cb96a2ee62a0fd995eba68e17a108a3b
author: yenatch <yenatch@gmail.com>
date: Fri Aug 16 18:35:31 EDT 2013
dt: three-byte value used for pokemon exp
--- a/constants.asm
+++ b/constants.asm
@@ -36,6 +36,12 @@
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
--
⑨