mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use HIGH() and LOW()
This commit is contained in:
parent
bbc257476f
commit
45ed05decf
22 changed files with 89 additions and 87 deletions
|
|
@ -53,9 +53,9 @@ UpdateNonPlayerSprite:
|
|||
DetectCollisionBetweenSprites:
|
||||
nop
|
||||
|
||||
ld h, wSpriteStateData1 / $100
|
||||
ld h, HIGH(wSpriteStateData1)
|
||||
ldh a, [hCurrentSpriteOffset]
|
||||
add wSpriteStateData1 % $100
|
||||
add LOW(wSpriteStateData1)
|
||||
ld l, a
|
||||
|
||||
ld a, [hl] ; a = [$c1i0] (picture) (0 if slot is unused)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue