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/sketch.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/sketch.asm')
-rw-r--r-- | engine/battle/move_effects/sketch.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/move_effects/sketch.asm b/engine/battle/move_effects/sketch.asm index a5b0d1c03..2d9705106 100644 --- a/engine/battle/move_effects/sketch.asm +++ b/engine/battle/move_effects/sketch.asm @@ -27,7 +27,7 @@ BattleCommand_Sketch: ld e, l ; Get the battle move structs. ld hl, wBattleMonMoves - ld a, [hBattleTurn] + ldh a, [hBattleTurn] and a jr z, .get_last_move ld hl, wEnemyMonMoves @@ -74,7 +74,7 @@ BattleCommand_Sketch: ld [hl], a pop bc - ld a, [hBattleTurn] + ldh a, [hBattleTurn] and a jr z, .user_trainer ld a, [wBattleMode] |