Specify the ldh instruction, don't turn ld into ldh

This commit is contained in:
Rangi 2020-07-06 19:03:05 -04:00
parent c480632d54
commit 772fcc7588
219 changed files with 2556 additions and 2556 deletions

View file

@ -169,7 +169,7 @@ WriteMonPartySpriteOAMByPartyIndex:
push hl
push de
push bc
ld a, [hPartyMonIndex]
ldh a, [hPartyMonIndex]
ld hl, wPartySpecies
ld e, a
ld d, 0
@ -187,7 +187,7 @@ WriteMonPartySpriteOAMBySpecies:
; Write OAM blocks for the party sprite of the species in
; [wMonPartySpriteSpecies].
xor a
ld [hPartyMonIndex], a
ldh [hPartyMonIndex], a
ld a, [wMonPartySpriteSpecies]
call GetPartyMonSpriteID
ld [wOAMBaseTile], a
@ -237,7 +237,7 @@ WriteMonPartySpriteOAM:
push af
ld c, $10
ld h, wOAMBuffer / $100
ld a, [hPartyMonIndex]
ldh a, [hPartyMonIndex]
swap a
ld l, a
add $10