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