summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-07-08 16:30:25 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-07-08 16:30:25 -0400
commiteddcbba82fa07705b35f3958a4f729878f22ecc2 (patch)
tree95e314333a1ceb93ca73a20dfcb44b319f271b17
parent462088a25c971fc8989e5bf56260c2365e258053 (diff)
Avoid "Warning: Left shift of negative value" from rgbds
-rwxr-xr-xmacros/asm_macros.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/asm_macros.asm b/macros/asm_macros.asm
index 28d2d95e..d3f00b0c 100755
--- a/macros/asm_macros.asm
+++ b/macros/asm_macros.asm
@@ -1,6 +1,6 @@
lb: MACRO ; r, hi, lo
- ld \1, (\2) << 8 + ((\3) & $ff)
+ ld \1, ((\2) & $ff) << 8 + ((\3) & $ff)
ENDM
homecall: MACRO