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/battle/move_effects/sleep_talk.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/battle/move_effects/sleep_talk.asm')
-rw-r--r-- | engine/battle/move_effects/sleep_talk.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/move_effects/sleep_talk.asm b/engine/battle/move_effects/sleep_talk.asm index ae2d252b7..92bff2602 100644 --- a/engine/battle/move_effects/sleep_talk.asm +++ b/engine/battle/move_effects/sleep_talk.asm @@ -5,7 +5,7 @@ BattleCommand_SleepTalk: ld a, [wAttackMissed] and a jr nz, .fail - ld a, [hBattleTurn] + ldh a, [hBattleTurn] and a ld hl, wBattleMonMoves + 1 ld a, [wDisabledMove] @@ -77,7 +77,7 @@ BattleCommand_SleepTalk: ret .check_has_usable_move - ld a, [hBattleTurn] + ldh a, [hBattleTurn] and a ld a, [wDisabledMove] jr z, .got_move_2 |