mirror of https://github.com/pret/pokecrystal.git
parent
4398dde8cb
commit
570d2ab1cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue