move gbc link dw update code

This commit is contained in:
scawful
2024-05-30 00:23:59 -04:00
parent dc29ce3fae
commit 917b71bd7f

View File

@@ -129,6 +129,14 @@ RunClock:
RTS RTS
.counter_increasing .counter_increasing
; GBC Link code
LDA $0FFF : CMP #$00 : BEQ .light_world
LDA $02B2 : CMP.b #$05 : BCS .already_gbc_or_minish
JSL UpdateGbcPalette
LDA.b #$3B : STA $BC ; change link's sprite
LDA.b #$06 : STA $02B2 ; set the form id
.light_world
.already_gbc_or_minish
; time speed (1,3,5,7,F,1F,3F,7F,FF) ; time speed (1,3,5,7,F,1F,3F,7F,FF)
; #$3F is almost 1 sec = 1 game minute ; #$3F is almost 1 sec = 1 game minute
@@ -169,12 +177,7 @@ RunClock:
; Reload Sprite Gfx Properties ; Reload Sprite Gfx Properties
JSL $00FC62 ; Sprite_LoadGraphicsProperties JSL $00FC62 ; Sprite_LoadGraphicsProperties
; GBC Link code
LDA $0FFF : CMP #$00 : BEQ .light_world
JSL UpdateGbcPalette
LDA.b #$3B : STA $BC ; change link's sprite
LDA.b #$06 : STA $02B2 ; set the form id
.light_world
RTS RTS
.reset_hours .reset_hours