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
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ dn: MACRO
db \1 << 4 + \2 db \1 << 4 + \2
ENDM ENDM
dt: MACRO ; three-byte (big-endian)
db (\1 >> 16) & $ff
db (\1 >> 8) & $ff
db \1 & $ff
ENDM
bigdw: MACRO ; big-endian word bigdw: MACRO ; big-endian word
dw ((\1)/$100) + (((\1)&$ff)*$100) dw ((\1)/$100) + (((\1)&$ff)*$100)
ENDM ENDM