aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/healing_machine.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-06 19:03:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-06 19:03:05 -0400
commit772fcc7588a4e1fbe146a02b429cf64282c81dcb (patch)
treef491fa1d38e37ab10534b3f18422e0149ad0deca /engine/overworld/healing_machine.asm
parentMerge pull request #262 from Rangi42/master (diff)
downloadpokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.tar.gz
pokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.tar.xz
pokeyellow-772fcc7588a4e1fbe146a02b429cf64282c81dcb.zip
Specify the ldh instruction, don't turn ld into ldh
Diffstat (limited to 'engine/overworld/healing_machine.asm')
-rwxr-xr-xengine/overworld/healing_machine.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/overworld/healing_machine.asm b/engine/overworld/healing_machine.asm
index a09a7590..062ef7ea 100755
--- a/engine/overworld/healing_machine.asm
+++ b/engine/overworld/healing_machine.asm
@@ -8,10 +8,10 @@ AnimateHealingMachine:
push af
ld [hl], $ff
push hl
- ld a, [rOBP1]
+ ldh a, [rOBP1]
push af
ld a, $e0
- ld [rOBP1], a
+ ldh [rOBP1], a
ld hl, wOAMBuffer + $84
ld de, PokeCenterOAMData
call CopyHealingMachineOAM
@@ -56,7 +56,7 @@ AnimateHealingMachine:
ld c, 32
call DelayFrames
pop af
- ld [rOBP1], a
+ ldh [rOBP1], a
pop hl
pop af
ld [hl], a
@@ -78,9 +78,9 @@ PokeCenterOAMData:
FlashSprite8Times:
ld b, 8
.loop
- ld a, [rOBP1]
+ ldh a, [rOBP1]
xor d
- ld [rOBP1], a
+ ldh [rOBP1], a
ld c, 10
call DelayFrames
dec b