ref: 53bcd8f46ca4f78381af70f55d03f3180be277de
parent: 9b0ca7b8c2a6ef6e3b6ef1f591f0ec875432b03a
parent: 47379235f875a3bd07b969ea554b82052191daf9
author: yenatch <[email protected]>
date: Thu May 10 20:45:12 EDT 2018
Merge pull request #512 from pret/warnings fix lb/ln and "left shift of negative value" warning
--- a/macros/code.asm
+++ b/macros/code.asm
@@ -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