summaryrefslogtreecommitdiff
path: root/engine/items/tmhm.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2018-08-25 22:23:45 -0400
committerGitHub <noreply@github.com>2018-08-25 22:23:45 -0400
commit3eacab563d0e1ab5557c2443556a7a5e58d14cad (patch)
tree3d747166409fdc94f0fd1aa760693a7ee5bd2156 /engine/items/tmhm.asm
parent89681d231611938a791f4256e602c88c2f9aa3e1 (diff)
parentb2adcd6d6ff91efc764a6ecc65147be7b9cda9e8 (diff)
Merge pull request #555 from Rangi42/ldh
Use real labels for HRAM instead of constants, and the ldh instruction
Diffstat (limited to 'engine/items/tmhm.asm')
-rw-r--r--engine/items/tmhm.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/items/tmhm.asm b/engine/items/tmhm.asm
index 14e481248..c81851def 100644
--- a/engine/items/tmhm.asm
+++ b/engine/items/tmhm.asm
@@ -1,9 +1,9 @@
TMHMPocket:
ld a, $1
- ld [hInMenu], a
+ ldh [hInMenu], a
call TMHM_PocketLoop
ld a, $0
- ld [hInMenu], a
+ ldh [hInMenu], a
ret nc
call PlaceHollowCursor
call WaitBGMap
@@ -188,7 +188,7 @@ Text_TMHMNotCompatible:
TMHM_PocketLoop:
xor a
- ld [hBGMapMode], a
+ ldh [hBGMapMode], a
call TMHM_DisplayPocketItems
ld a, 2
ld [w2DMenuCursorInitY], a
@@ -227,7 +227,7 @@ TMHM_JoypadLoop:
dec a
ld [wTMHMPocketCursor], a
xor a
- ld [hBGMapMode], a
+ ldh [hBGMapMode], a
ld a, [w2DMenuFlags2]
bit 7, a
jp nz, TMHM_ScrollPocket