mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Replace Stack with wStack.
This commit is contained in:
parent
f2ae74079f
commit
79bd48f85c
@ -332,7 +332,7 @@ UpdateStackTop: ; 14c6b
|
||||
FindStackTop: ; 14c90
|
||||
; Find the furthest point that sp has traversed to.
|
||||
; This is distinct from the current value of sp.
|
||||
ld hl, Stack - $ff
|
||||
ld hl, wStack - $ff
|
||||
.loop
|
||||
ld a, [hl]
|
||||
or a
|
||||
|
@ -481,7 +481,7 @@ AnimateWaterTile: ; fc402
|
||||
adc HIGH(WaterTileFrames)
|
||||
ld h, a
|
||||
|
||||
; Stack now points to the start of the tile for this frame.
|
||||
; The stack now points to the start of the tile for this frame.
|
||||
ld sp, hl
|
||||
|
||||
ld l, e
|
||||
@ -845,7 +845,7 @@ AnimateWhirlpoolTile: ; fc678
|
||||
adc h
|
||||
ld h, a
|
||||
|
||||
; Stack now points to the desired frame.
|
||||
; The stack now points to the desired frame.
|
||||
ld sp, hl
|
||||
|
||||
ld l, e
|
||||
|
@ -79,7 +79,7 @@ Init:: ; 17d
|
||||
or c
|
||||
jr nz, .ByteFill
|
||||
|
||||
ld sp, Stack
|
||||
ld sp, wStack
|
||||
|
||||
; Clear HRAM
|
||||
ld a, [hCGB]
|
||||
|
Loading…
Reference in New Issue
Block a user