Add Music cursor routines
This commit is contained in:
@@ -287,13 +287,13 @@ Menu_StatsScreen:
|
|||||||
BRA .no_inputs
|
BRA .no_inputs
|
||||||
|
|
||||||
.move_right
|
.move_right
|
||||||
JSR Menu_DeleteCursor
|
JSR Menu_DeleteSongCursor
|
||||||
JSR Menu_FindNextItem
|
JSR Menu_FindNextSong
|
||||||
BRA .draw_cursor
|
BRA .draw_cursor
|
||||||
|
|
||||||
.move_left
|
.move_left
|
||||||
JSR Menu_DeleteCursor
|
JSR Menu_DeleteSongCursor
|
||||||
JSR Menu_FindPrevItem
|
JSR Menu_FindPrevSong
|
||||||
BRA .draw_cursor
|
BRA .draw_cursor
|
||||||
|
|
||||||
.draw_cursor
|
.draw_cursor
|
||||||
@@ -304,7 +304,7 @@ Menu_StatsScreen:
|
|||||||
LDA.w $02D5
|
LDA.w $02D5
|
||||||
ASL : TAY
|
ASL : TAY
|
||||||
REP #$10
|
REP #$10
|
||||||
LDX.w Menu_OcarinaSongPositions-2, Y
|
LDX.w Menu_OcarinaSongPositions, Y
|
||||||
|
|
||||||
LDA.b #$20 : BIT.w $0207
|
LDA.b #$20 : BIT.w $0207
|
||||||
|
|
||||||
@@ -315,16 +315,16 @@ Menu_StatsScreen:
|
|||||||
LDA.w #$20F5
|
LDA.w #$20F5
|
||||||
STA.w $1108, X
|
STA.w $1108, X
|
||||||
STA.w $1148, X
|
STA.w $1148, X
|
||||||
STA.w $114E, X
|
STA.w $114E, X
|
||||||
STA.w $110E, X
|
STA.w $110E, X
|
||||||
STA.w $11C8, X
|
STA.w $11C8, X
|
||||||
STA.w $1188, X
|
STA.w $1188, X
|
||||||
STA.w $118E, X
|
STA.w $118E, X
|
||||||
STA.w $11CE, X
|
STA.w $11CE, X
|
||||||
BRA .done
|
BRA .done
|
||||||
|
|
||||||
.no_delete
|
.no_delete
|
||||||
|
|
||||||
LDA.w #$3060 : STA.w $1108, X ; corner
|
LDA.w #$3060 : STA.w $1108, X ; corner
|
||||||
LDA.w #$3070 : STA.w $1148, X
|
LDA.w #$3070 : STA.w $1148, X
|
||||||
|
|
||||||
|
|||||||
@@ -77,13 +77,6 @@ Menu_ItemCursorPositions:
|
|||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------
|
||||||
|
|
||||||
Menu_OcarinaSongPositions:
|
|
||||||
dw menu_offset(15,12) ; song of
|
|
||||||
dw menu_offset(15,15) ; song of
|
|
||||||
dw menu_offset(15,18) ; song of
|
|
||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
Menu_FindNextItem:
|
Menu_FindNextItem:
|
||||||
{
|
{
|
||||||
@@ -190,34 +183,69 @@ Menu_InitItemScreen:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =============================================================================
|
||||||
|
; Song Selection Code
|
||||||
|
|
||||||
; -----------------------------------------------------------------------------
|
; -----------------------------------------------------------------------------
|
||||||
|
|
||||||
; $0303[0x01] - (Player)
|
Menu_SongAddressIndex:
|
||||||
|
db $01
|
||||||
|
db $02
|
||||||
|
db $03
|
||||||
|
|
||||||
; In conjunction with the above variable when set to 0x13, matching the above
|
; -----------------------------------------------------------------------------
|
||||||
; variable, the cape transformation is complete.
|
|
||||||
|
Menu_OcarinaSongPositions:
|
||||||
; This indicates which secondary item is equipped (aka Y-button
|
dw menu_offset(16,12) ; song of
|
||||||
; item).
|
dw menu_offset(16,15) ; song of
|
||||||
|
dw menu_offset(16,18) ; song of
|
||||||
; 0x00 - Nothing
|
|
||||||
; 0x01 - Bombs
|
; -----------------------------------------------------------------------------
|
||||||
; 0x02 - Boomerang
|
|
||||||
; 0x03 - Arrows
|
Menu_FindNextSong:
|
||||||
; 0x04 - Hammer
|
{
|
||||||
; 0x05 - Fire Rod
|
LDY.w $02D5 : INY
|
||||||
; 0x06 - Ice Rod
|
CPY.b #$03 : BCC .no_reset
|
||||||
; 0x07 - Bug catching net
|
LDY.b #$01
|
||||||
; 0x08 - Flute
|
.no_reset
|
||||||
; 0x09 - Lamp
|
STY.w $02D5
|
||||||
; 0x0A - Magic Powder
|
LDX.w Menu_SongAddressIndex-1, Y
|
||||||
; 0x0B - Bottle
|
LDA.l $7EF407, X
|
||||||
; 0x0C - Book of Mudora
|
BEQ Menu_FindNextSong
|
||||||
; 0x0D - Cane of Byrna
|
RTS
|
||||||
; 0x0E - Hookshot
|
}
|
||||||
; 0x0F - Bombos Medallion
|
|
||||||
; 0x10 - Ether Medallion
|
; -----------------------------------------------------------------------------
|
||||||
; 0x11 - Quake Medallion
|
|
||||||
; 0x12 - Cane of Somaria
|
Menu_FindPrevSong:
|
||||||
; 0x13 - Cape
|
{
|
||||||
; 0x14 - Magic Mirror
|
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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user