not working
This commit is contained in:
parent
db97305119
commit
9200e82a15
3 changed files with 107 additions and 33 deletions
33
dither4.s
33
dither4.s
|
|
@ -15,6 +15,8 @@ NMIEN = $D40E
|
|||
|
||||
framebuffer = $a000
|
||||
framebuffer2 = $b000
|
||||
framebuffer3 = $8000
|
||||
framebuffer4 = $9000
|
||||
|
||||
temp1l = $80
|
||||
temp1h = $81
|
||||
|
|
@ -64,9 +66,32 @@ displaylist:
|
|||
.byte $0e
|
||||
.endrep
|
||||
|
||||
.byte $41 ; jump and blank
|
||||
.addr displaylist_part2
|
||||
|
||||
displaylist_part2:
|
||||
; 40 lines overscan
|
||||
.repeat 5
|
||||
.byte $70 ; 8 blank lines
|
||||
.endrep
|
||||
|
||||
; 160 lines graphics
|
||||
; ANTIC mode e (160px 2bpp, 1 scan line per line)
|
||||
.byte $4e
|
||||
.addr framebuffer3
|
||||
.repeat height / 2 - 1
|
||||
.byte $0e
|
||||
.endrep
|
||||
.byte $4e
|
||||
.addr framebuffer4
|
||||
.repeat height / 2 - 1
|
||||
.byte $0e
|
||||
.endrep
|
||||
|
||||
.byte $41 ; jump and blank
|
||||
.addr displaylist
|
||||
|
||||
|
||||
audio_high_byte:
|
||||
.scope
|
||||
.macro byteseq val
|
||||
|
|
@ -185,8 +210,8 @@ each_scanline:
|
|||
|
||||
.macro audio_play_lo ; 11 cycles
|
||||
lda audiotemp ; 3 cyc
|
||||
and #$0f ; 2 cyc
|
||||
ora #$10 ; 2 cyc
|
||||
;and #$0f ; 2 cyc
|
||||
;ora #$10 ; 2 cyc
|
||||
sta AUDC1 ; 4 cyc
|
||||
.endmacro
|
||||
|
||||
|
|
@ -221,9 +246,9 @@ each_scanline:
|
|||
audio_cont:
|
||||
.endmacro
|
||||
|
||||
audio_prep
|
||||
;audio_prep
|
||||
inner_scanline
|
||||
audio_play_lo
|
||||
;audio_play_lo
|
||||
inner_scanline
|
||||
;audio_play_hi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue