diff --git a/dither4.s b/dither4.s index a3316db..dba582e 100644 --- a/dither4.s +++ b/dither4.s @@ -37,10 +37,12 @@ pages_per_frame = 32 .import bitmap displaylist: - ; @fixme resolve the line counts + ; 24 lines overscan .repeat 3 .byte $70 ; 8 blank lines .endrep + + ; 192 lines graphics ; ANTIC mode e (160px 2bpp, 1 scan line per line) .byte $4e .addr framebuffer @@ -52,9 +54,7 @@ displaylist: .repeat height / 2 - 1 .byte $0e .endrep - .repeat 3 - .byte $70 ; 8 blank lines - .endrep + .byte $41 ; jump and blank .addr displaylist @@ -105,12 +105,12 @@ wait_vblank: lda #$22 sta DMACTL -wait_loop: - sta WSYNC wait_start: +wait_loop: lda VCOUNT cmp #15 bne wait_loop + STA WSYNC ldy #0 each_scanline: