urk, maybe no cycles free ;)
This commit is contained in:
parent
7dfa1dfb26
commit
019422e6e5
1 changed files with 43 additions and 39 deletions
12
dither4.s
12
dither4.s
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue