You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
dt: three-byte value
used for pokemon exp
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user