diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-25 14:28:22 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-25 14:28:22 -0400 |
commit | eb1e3636bb71509546c274bf2a5910d8e71a9600 (patch) | |
tree | 24d7742604073b2afb86c1225258f8217d1653e7 /engine/items/tmhm.asm | |
parent | 376c64468bab8d162da43fc6e1b6f0942943cf43 (diff) |
Use labels instead of constants for HRAM
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
Diffstat (limited to 'engine/items/tmhm.asm')
-rw-r--r-- | engine/items/tmhm.asm | 8 |
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 |