peasant: clean up music

This commit is contained in:
Vince Weaver 2021-08-12 21:01:05 -04:00
parent 17a1d69f7a
commit 7ae0b31cbd
3 changed files with 27 additions and 1 deletions

View File

@ -113,7 +113,10 @@ done_knight_action:
done_knight: done_knight:
; OK stuff goes on here ; after OK stuff goes on here
sei ; turn off music
jsr pt3_clear_ay_both
jsr draw_peasant jsr draw_peasant

View File

@ -18,6 +18,26 @@ peasant_quest:
; Y=0, A=0 after this called ; Y=0, A=0 after this called
;*******************************
; restart music, only drum loop
;******************************
; hack! modify the PT3 file to ignore the latter half
PT3_LOC=$E00+$E00
pt3_init_song=$e00+$A56
pt3_clear_ay_both=$e00+$CDF
lda #$ff ; end after 4 patterns
sta PT3_LOC+$C9+$4
lda #$0 ; set LOOP to 0
sta PT3_LOC+$66
jsr pt3_init_song
cli
;************************ ;************************
; Cottage ; Cottage
;************************ ;************************

View File

@ -107,8 +107,11 @@ do_title:
jsr wait_until_keypress jsr wait_until_keypress
sei ; disable music sei ; disable music
jsr clear_ay_both
;************************ ;************************
; Tips ; Tips
;************************ ;************************