From 47379235f875a3bd07b969ea554b82052191daf9 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 6 May 2018 21:35:55 -0400 Subject: [PATCH] fix lb/ln and "left shift of negative value" warning fixes #511 --- macros/code.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/code.asm b/macros/code.asm index a02a33380..1fb651f30 100644 --- 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