tweak tweak
This commit is contained in:
parent
5ac783315a
commit
9e3610174a
1 changed files with 1 additions and 5 deletions
|
@ -184,17 +184,12 @@ wait_loop:
|
||||||
cmp #.hibyte(audio_samples_end) ; 2 cyc
|
cmp #.hibyte(audio_samples_end) ; 2 cyc
|
||||||
bmi audio_cont ; 2 cyc
|
bmi audio_cont ; 2 cyc
|
||||||
|
|
||||||
sta WSYNC
|
|
||||||
|
|
||||||
; 10 cycles, optional
|
; 10 cycles, optional
|
||||||
lda #.lobyte(audio_samples) ; 2
|
lda #.lobyte(audio_samples) ; 2
|
||||||
sta sample_ptrl ; 3
|
sta sample_ptrl ; 3
|
||||||
lda #.hibyte(audio_samples) ; 2
|
lda #.hibyte(audio_samples) ; 2
|
||||||
sta sample_ptrh ; 3
|
sta sample_ptrh ; 3
|
||||||
|
|
||||||
sta WSYNC
|
|
||||||
ldy VCOUNT ; 4 cycles
|
|
||||||
|
|
||||||
audio_cont:
|
audio_cont:
|
||||||
.endmacro
|
.endmacro
|
||||||
|
|
||||||
|
@ -222,6 +217,7 @@ wait_loop:
|
||||||
|
|
||||||
; Do bookkeeping during vblank!
|
; Do bookkeeping during vblank!
|
||||||
audio_inc ; 22-32 cycles
|
audio_inc ; 22-32 cycles
|
||||||
|
ldy VCOUNT ; 4 cycles
|
||||||
|
|
||||||
jmp each_frame ; 3 cycles
|
jmp each_frame ; 3 cycles
|
||||||
.endscope
|
.endscope
|
||||||
|
|
Loading…
Reference in a new issue