summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-18 20:49:52 -0700
committerYamaArashi <shadow962@live.com>2015-07-18 21:58:55 -0700
commitc169073eed4f0362ef42170098a141a2fcbd71d0 (patch)
treea4f97ff8eff1a9fc80cadc4dba3fe9d088410656 /macros.asm
parentb96ef8d2d495b8c39f703742e8c1965c774fc54f (diff)
misc
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