You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Use labels instead of constants for HRAM
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
This commit is contained in:
@@ -39,12 +39,12 @@ ScrollScreen::
|
||||
ld d, a
|
||||
ld a, [wPlayerStepVectorY]
|
||||
ld e, a
|
||||
ld a, [hSCX]
|
||||
ldh a, [hSCX]
|
||||
add d
|
||||
ld [hSCX], a
|
||||
ld a, [hSCY]
|
||||
ldh [hSCX], a
|
||||
ldh a, [hSCY]
|
||||
add e
|
||||
ld [hSCY], a
|
||||
ldh [hSCY], a
|
||||
ret
|
||||
|
||||
HandlePlayerStep:
|
||||
|
||||
Reference in New Issue
Block a user