urk, maybe no cycles free ;)

This commit is contained in:
Brooke Vibber 2022-11-30 03:39:23 -08:00
parent 7dfa1dfb26
commit 019422e6e5

View file

@ -131,6 +131,7 @@ wait_loop:
each_scanline: each_scanline:
; it'll fire on unused lines, but harmlessly ; it'll fire on unused lines, but harmlessly
.macro fake1
jmp fake jmp fake
; audio sample; low nybble ; audio sample; low nybble
ldx #0 ldx #0
@ -153,6 +154,7 @@ each_scanline:
ora #$10 ora #$10
lda #0 lda #0
pha pha
.endmacro
fake: fake:
lda #18 lda #18
@ -187,6 +189,7 @@ each_scanline:
inner_scanline inner_scanline
.macro audio_inc
; Increment sample ptr ; Increment sample ptr
jmp audio_cont jmp audio_cont
inc sample_ptrl inc sample_ptrl
@ -205,6 +208,7 @@ each_scanline:
sta sample_ptrl sta sample_ptrl
lda #.hibyte(audio_samples) lda #.hibyte(audio_samples)
sta sample_ptrh sta sample_ptrh
.endmacro
audio_cont: audio_cont:
@ -212,11 +216,11 @@ audio_cont:
lda VCOUNT lda VCOUNT
cmp #130 ;#130 cmp #130 ;#130
;bne each_scanline bne each_scanline
bne foo ;bne foo
jmp wait_start jmp wait_start
foo: ;foo:
jmp each_scanline ;jmp each_scanline
.endproc .endproc