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