diff --git a/dither-image.js b/dither-image.js index f14f1d8..8fd2179 100644 --- a/dither-image.js +++ b/dither-image.js @@ -1004,11 +1004,9 @@ ${byte2byte(odd(frame.palette3))} .align 1024 displaylist: ; 24 lines overscan - .repeat 2 + .repeat 3 .byte $70 ; 8 blank lines .endrep - ; include a DLI to mark us as frame 0 - .byte $f0 ; 8 blank lines ; ${height} lines graphics ; ANTIC mode e (160px 2bpp, 1 scan line per line) diff --git a/dither4.s b/dither4.s index 02dbb45..bed425f 100644 --- a/dither4.s +++ b/dither4.s @@ -27,7 +27,6 @@ sample_ptrh = $85 sample_ptr = sample_ptrl scanline = $86 audiotemp = $87 -frame_counter = $89 ;height = 160 height = 192 @@ -103,12 +102,6 @@ audio_high_byte: lda #.hibyte(displaylist) sta DLISTH - ; Set up the DLI handler - lda #.lobyte(dli_handler) - sta VDSLSTL - lda #.hibyte(dli_handler) - sta VDSLSTH - ; Disable VBI but allow Reset and DLI lda #$a0 sta NMIEN @@ -230,10 +223,6 @@ wait_loop: ; Do bookkeeping during vblank! audio_inc ; 22-32 cycles - ; frame cleanup: 11 cycles - lda frame_counter ; 3 cycles - eor #1 ; 2 cycles - sta frame_counter ; 3 cycles jmp each_frame ; 3 cycles .endscope .endmacro @@ -243,10 +232,3 @@ run_frame1: run_frame 0 .endproc - - -.proc dli_handler - lda #0 - sta frame_counter - rti -.endproc