sorta works but timing's not quite right

This commit is contained in:
Brooke Vibber 2022-11-30 04:30:46 -08:00
parent 2c42332e1c
commit b2994f093f

View file

@ -181,18 +181,12 @@ each_scanline:
sta COLPF0
stx COLPF1
sty COLPF2
; Audio sample
;pla
;lda temp1
;sta AUDC1
.endmacro
inner_scanline
audio_play
.macro audio_inc
;; toooo slllooowwww
; Increment sample ptr
inc sample_ptrl
bne audio_cont
@ -202,9 +196,9 @@ each_scanline:
cmp #.hibyte(audio_samples_end)
bne audio_cont
lda sample_ptrl
cmp #.lobyte(audio_samples_end)
bne audio_cont
;lda sample_ptrl
;cmp #.lobyte(audio_samples_end)
;bne audio_cont
lda #.lobyte(audio_samples)
sta sample_ptrl
@ -215,8 +209,8 @@ each_scanline:
.endmacro
;audio_inc
inner_scanline
audio_inc
lda VCOUNT
cmp #130 ;#130