Cleanup overworld overlays jump table organization
This commit is contained in:
@@ -78,12 +78,33 @@ RTS
|
||||
|
||||
pullpc
|
||||
|
||||
;===============================================
|
||||
; Entrance Animation
|
||||
;===============================================
|
||||
; Zarby Notes
|
||||
; don't forget to set $C8 to zero (STZ.b $C8)
|
||||
; don't forget to set $B0 to zero (STZ.b $B0)
|
||||
|
||||
ShakeScreen:
|
||||
{
|
||||
REP #$20
|
||||
LDA.b $1A
|
||||
AND.w #$0001
|
||||
ASL A
|
||||
TAX
|
||||
|
||||
LDA.l $01C961, X
|
||||
STA.w $011A
|
||||
|
||||
LDA.l $01C965, X
|
||||
STA.w $011C
|
||||
|
||||
.exit
|
||||
SEP #$20
|
||||
RTS
|
||||
}
|
||||
|
||||
|
||||
; =========================================================
|
||||
; Zora Temple Hidden Waterfall
|
||||
|
||||
ZoraTemple_EntranceAnimation:
|
||||
{
|
||||
; If $B0 is 8, then we move the camera back to the origin
|
||||
@@ -122,33 +143,9 @@ ZoraTemple_EntranceAnimation:
|
||||
dw Frame6
|
||||
dw Frame7
|
||||
dw Frame8
|
||||
}
|
||||
|
||||
; =========================================================
|
||||
; Shake screen
|
||||
; =========================================================
|
||||
|
||||
ShakeScreen:
|
||||
{
|
||||
REP #$20
|
||||
LDA.b $1A
|
||||
AND.w #$0001
|
||||
ASL A
|
||||
TAX
|
||||
|
||||
LDA.l $01C961, X
|
||||
STA.w $011A
|
||||
|
||||
LDA.l $01C965, X
|
||||
STA.w $011C
|
||||
|
||||
.exit
|
||||
SEP #$20
|
||||
RTS
|
||||
}
|
||||
|
||||
Frame0:
|
||||
{
|
||||
Frame0:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -199,10 +196,10 @@ Frame0:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame1:
|
||||
{
|
||||
Frame1:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -254,10 +251,10 @@ Frame1:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame2:
|
||||
{
|
||||
Frame2:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -308,10 +305,10 @@ Frame2:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame3:
|
||||
{
|
||||
Frame3:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -368,10 +365,10 @@ Frame3:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame4:
|
||||
{
|
||||
Frame4:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -417,10 +414,10 @@ Frame4:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame5:
|
||||
{
|
||||
Frame5:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -485,10 +482,10 @@ Frame5:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame6:
|
||||
{
|
||||
Frame6:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -552,10 +549,10 @@ Frame6:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame7:
|
||||
{
|
||||
Frame7:
|
||||
{
|
||||
LDA.b $C8 : BEQ .doInit ; Load the timer
|
||||
JMP .notfirstframe
|
||||
.doInit
|
||||
@@ -620,10 +617,10 @@ Frame7:
|
||||
STZ.b $C8 ; reset timer for next frame
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
}
|
||||
|
||||
Frame8:
|
||||
{
|
||||
Frame8:
|
||||
{
|
||||
JSR ShakeScreen ; make the screen shake
|
||||
INC.b $C8 : LDA.b $C8 : CMP.b #$1E ; Load and compare timer
|
||||
BNE .wait
|
||||
@@ -643,6 +640,8 @@ Frame8:
|
||||
STA.l $7EF280,X
|
||||
.wait
|
||||
RTS
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
; =========================================================
|
||||
@@ -928,7 +927,7 @@ Castle_Frame3:
|
||||
RTS
|
||||
}
|
||||
|
||||
;===============================================
|
||||
; =========================================================
|
||||
|
||||
TailPalace_EntranceAnimation:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user