mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Specify the ldh instruction, don't turn ld into ldh
This commit is contained in:
parent
c480632d54
commit
772fcc7588
219 changed files with 2556 additions and 2556 deletions
|
|
@ -58,7 +58,7 @@ CheckForHiddenObject::
|
|||
ld [wHiddenObjectX], a
|
||||
ld c, a
|
||||
call CheckIfCoordsInFrontOfPlayerMatch
|
||||
ld a, [hCoordsInFrontOfPlayerMatch]
|
||||
ldh a, [hCoordsInFrontOfPlayerMatch]
|
||||
and a
|
||||
jr z, .foundMatchingObject
|
||||
inc hl
|
||||
|
|
@ -81,7 +81,7 @@ CheckForHiddenObject::
|
|||
ret
|
||||
.noMatch
|
||||
ld a, $ff
|
||||
ld [hDidntFindAnyHiddenObject], a
|
||||
ldh [hDidntFindAnyHiddenObject], a
|
||||
ret
|
||||
|
||||
; checks if the coordinates in front of the player's sprite match Y in b and X in c
|
||||
|
|
@ -127,7 +127,7 @@ CheckIfCoordsInFrontOfPlayerMatch:
|
|||
.didNotMatch
|
||||
ld a, $ff
|
||||
.done
|
||||
ld [hCoordsInFrontOfPlayerMatch], a
|
||||
ldh [hCoordsInFrontOfPlayerMatch], a
|
||||
ret
|
||||
|
||||
INCLUDE "data/events/hidden_objects.asm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue