mirror of https://github.com/pret/pokecrystal.git
Merge pull request #512 from pret/warnings
fix lb/ln and "left shift of negative value" warning
This commit is contained in:
commit
53bcd8f46c
|
@ -1,11 +1,11 @@
|
|||
; Syntactic sugar macros
|
||||
|
||||
lb: MACRO ; r, hi, lo
|
||||
ld \1, (\2 & $ff) << 8 + (\3 & $ff)
|
||||
ld \1, (((\2) & $ff) << 8) | (((\3) & $ff))
|
||||
ENDM
|
||||
|
||||
ln: MACRO ; r, hi, lo
|
||||
ld \1, (\2 & $f) << 4 + (\3 & $f)
|
||||
ld \1, (((\2) & $f) << 4) | (((\3) & $f))
|
||||
ENDM
|
||||
|
||||
ldpixel: MACRO
|
||||
|
|
Loading…
Reference in New Issue