Ocarina Songs (Healing, Soaring, Storms)

This commit is contained in:
scawful
2023-05-14 23:21:36 -05:00
parent 1a8f5e8fe2
commit 29874bc545
4 changed files with 460 additions and 137 deletions

View File

@@ -181,73 +181,4 @@ Menu_InitItemScreen:
LDA.b #$04
STA.w $0200
RTS
}
; =============================================================================
; Song Selection Code
; -----------------------------------------------------------------------------
Menu_SongAddressIndex:
db $01
db $02
db $03
; -----------------------------------------------------------------------------
Menu_OcarinaSongPositions:
dw menu_offset(16,12) ; song of
dw menu_offset(16,15) ; song of
dw menu_offset(16,18) ; song of
; -----------------------------------------------------------------------------
Menu_FindNextSong:
{
LDY.w $02D5 : INY
CPY.b #$03 : BCC .no_reset
LDY.b #$01
.no_reset
STY.w $02D5
LDX.w Menu_SongAddressIndex-1, Y
LDA.l $7EF407, X
BEQ Menu_FindNextSong
RTS
}
; -----------------------------------------------------------------------------
Menu_FindPrevSong:
{
LDY.w $02D5 : DEY : BNE .no_reset
LDY.b #$02
.no_reset
STY.w $02D5
LDX.w Menu_SongAddressIndex-1, Y
LDA.l $7EF407, X
BEQ Menu_FindPrevSong
RTS
}
; -----------------------------------------------------------------------------
Menu_DeleteSongCursor:
{
REP #$30
LDX.w Menu_OcarinaSongPositions-2, Y
LDA.w #$20F5
STA.w $1422, X
STA.w $1462, X
STA.w $14A2, X
STA.w $14E2, X
STA.w $11C8, X
STA.w $1188, X
STA.w $118E, X
STA.w $11CE, X
SEP #$30
STZ $0207
RTS
}
; -----------------------------------------------------------------------------
}