add song of time to L/R ocarina switch
This commit is contained in:
@@ -362,11 +362,13 @@ ResetOcarinaFlag:
|
|||||||
; 01 - Song of Storms
|
; 01 - Song of Storms
|
||||||
; 02 - Song of Healing
|
; 02 - Song of Healing
|
||||||
; 03 - Song of Soaring
|
; 03 - Song of Soaring
|
||||||
|
; 04 - Song of Time
|
||||||
|
|
||||||
; Values at $7EF34C determine scrolling behavior
|
; Values at $7EF34C determine scrolling behavior
|
||||||
; 01 - No scrolling allowed
|
; 01 - No scrolling allowed
|
||||||
; 02 - Scroll between two songs
|
; 02 - Scroll between two songs
|
||||||
; 03 - Scroll between three songs
|
; 03 - Scroll between three songs
|
||||||
|
; 04 - Scroll between four songs
|
||||||
|
|
||||||
UpdateFluteSong_Long:
|
UpdateFluteSong_Long:
|
||||||
{
|
{
|
||||||
@@ -393,13 +395,17 @@ UpdateFluteSong_Long:
|
|||||||
; R Button Pressed - Increment song
|
; R Button Pressed - Increment song
|
||||||
INC $030F ; increment $030F Song RAM
|
INC $030F ; increment $030F Song RAM
|
||||||
LDA $030F ; load incremented Song RAM
|
LDA $030F ; load incremented Song RAM
|
||||||
CMP.b #$04
|
CMP.b #$05
|
||||||
BCS .wrap_to_min
|
BCS .wrap_to_min
|
||||||
.update_song
|
.update_song
|
||||||
RTL
|
RTL
|
||||||
|
|
||||||
.wrap_to_max
|
.wrap_to_max
|
||||||
LDA $7EF34C : CMP.b #$02 : BEQ .set_max_to_2
|
LDA $7EF34C : CMP.b #$02 : BEQ .set_max_to_2
|
||||||
|
CMP.b #$03 : BEQ .set_max_to_3
|
||||||
|
LDA #$04 : STA $030F : RTL
|
||||||
|
|
||||||
|
.set_max_to_3
|
||||||
LDA #$03 : STA $030F : RTL
|
LDA #$03 : STA $030F : RTL
|
||||||
|
|
||||||
.set_max_to_2
|
.set_max_to_2
|
||||||
|
|||||||
Reference in New Issue
Block a user