skip dli
This commit is contained in:
parent
9242ffc4e6
commit
5ac783315a
2 changed files with 1 additions and 21 deletions
|
@ -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)
|
||||
|
|
18
dither4.s
18
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
|
||||
|
|
Loading…
Reference in a new issue