summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros.asm b/macros.asm
index 2677de671..4572d0c90 100644
--- a/macros.asm
+++ b/macros.asm
@@ -92,11 +92,11 @@ dab: MACRO ; dwb address, bank
ENDM
lb: MACRO ; r, hi, lo
- ld \1, (\2) << 8 + (\3)
+ ld \1, (\2 & $ff) << 8 + (\3 & $ff)
ENDM
ln: MACRO ; r, hi, lo
- ld \1, (\2) << 4 + (\3)
+ ld \1, (\2 & $f) << 4 + (\3 & $f)
ENDM
bccoord equs "coord bc,"