dt: three-byte value

used for pokemon exp
This commit is contained in:
yenatch 2013-08-16 22:35:31 -04:00
parent 4398dde8cb
commit 570d2ab1cf

View File

@ -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