pt3: fix vibrato bug in the invariant case too

This commit is contained in:
Vince Weaver 2019-09-07 22:08:06 -04:00
parent 8a819939ed
commit b5635577a2

View File

@ -919,13 +919,15 @@ handle_onoff:
eor #$1 ; toggle
sta note_a+NOTE_ENABLED,X
.byte $a9 ;mask do_onoff
beq do_offon
do_onoff:
dex ; select ONOFF
;lda note_a+NOTE_ONOFF_DELAY,X ; if (a->enabled) a->onoff=a->onoff_delay;
ldy note_a+NOTE_ONOFF_DELAY,X ; if (a->enabled) a->onoff=a->onoff_delay;
off_delay:
jmp put_offon
do_offon:
ldy note_a+NOTE_OFFON_DELAY,X ; else a->onoff=a->offon_delay;
put_offon:
; tya
sty note_a+NOTE_ONOFF,X
.endif