summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros.asm b/macros.asm
index 5f1deaf6..ba83e73a 100644
--- a/macros.asm
+++ b/macros.asm
@@ -14,7 +14,7 @@ dex EQUS "db $5f, $50" ; End a Pokedex entry.
percent EQUS "* $ff / 100"
lb: MACRO ; r, hi, lo
- ld \1, (\2) << 8 + (\3)
+ ld \1, (\2) << 8 + ((\3) & $ff)
ENDM