mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
parent
a63d9dfd4f
commit
47379235f8
@ -1,11 +1,11 @@
|
|||||||
; Syntactic sugar macros
|
; Syntactic sugar macros
|
||||||
|
|
||||||
lb: MACRO ; r, hi, lo
|
lb: MACRO ; r, hi, lo
|
||||||
ld \1, (\2 & $ff) << 8 + (\3 & $ff)
|
ld \1, (((\2) & $ff) << 8) | (((\3) & $ff))
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
ln: MACRO ; r, hi, lo
|
ln: MACRO ; r, hi, lo
|
||||||
ld \1, (\2 & $f) << 4 + (\3 & $f)
|
ld \1, (((\2) & $f) << 4) | (((\3) & $f))
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
ldpixel: MACRO
|
ldpixel: MACRO
|
||||||
|
Loading…
Reference in New Issue
Block a user