tweak tweak

This commit is contained in:
Brooke Vibber 2024-09-07 12:24:27 -07:00
parent 5ac783315a
commit 9e3610174a

View file

@ -184,17 +184,12 @@ wait_loop:
cmp #.hibyte(audio_samples_end) ; 2 cyc
bmi audio_cont ; 2 cyc
sta WSYNC
; 10 cycles, optional
lda #.lobyte(audio_samples) ; 2
sta sample_ptrl ; 3
lda #.hibyte(audio_samples) ; 2
sta sample_ptrh ; 3
sta WSYNC
ldy VCOUNT ; 4 cycles
audio_cont:
.endmacro
@ -222,6 +217,7 @@ wait_loop:
; Do bookkeeping during vblank!
audio_inc ; 22-32 cycles
ldy VCOUNT ; 4 cycles
jmp each_frame ; 3 cycles
.endscope