summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects/disable.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 14:28:22 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 14:28:22 -0400
commiteb1e3636bb71509546c274bf2a5910d8e71a9600 (patch)
tree24d7742604073b2afb86c1225258f8217d1653e7 /engine/battle/move_effects/disable.asm
parent376c64468bab8d162da43fc6e1b6f0942943cf43 (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/disable.asm')
-rw-r--r--engine/battle/move_effects/disable.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/move_effects/disable.asm b/engine/battle/move_effects/disable.asm
index 44017e30d..7f5cfaea0 100644
--- a/engine/battle/move_effects/disable.asm
+++ b/engine/battle/move_effects/disable.asm
@@ -7,7 +7,7 @@ BattleCommand_Disable:
ld de, wEnemyDisableCount
ld hl, wEnemyMonMoves
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
jr z, .got_moves
ld de, wPlayerDisableCount
@@ -33,7 +33,7 @@ BattleCommand_Disable:
cp b
jr nz, .loop
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
ld hl, wEnemyMonPP
jr z, .got_pp
@@ -55,7 +55,7 @@ BattleCommand_Disable:
ld [de], a
call AnimateCurrentMove
ld hl, wDisabledMove
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
jr nz, .got_disabled_move_pointer
inc hl