dysp ldy #8 ldx #0 - lda d021_table,x dec $d016 sta $d021 sty $d016 lda d011_table,x sta $d011 lda timing,x sta _delay + 1 _delay bpl * + 2 cpx #$e0 cpx #$e0 cpx #$e0 cpx #$e0 cpx #$e0 cpx #$e0 cpx #$e0 cpx #$e0 bit $ea inx cpx #DYSP_HEIGHT bne - rts
cycles ; $00-$03 .byte 0 ; no sprites .byte 3 ; sprite 0 .byte 5 ; sprite 1 .byte 5 ; sprite 0 + 1 ; much more data ; $fc-$ff .byte $0f ; sprite 2-7 .byte $11 ; sprite 0, 2-7 .byte $11 ; sprite 1-7 .byte $11 ; sprite 0-7
00 VIC: 0 01 VIC: 2 (+ 1= 3) 02 VIC: 2 (+ 1= 3) 03 VIC: 4 (+ 1= 5) ... fc VIC: 12 (+ 1=13) fd VIC: 14 (+ 2=16) fe VIC: 14 (+ 1=15) ff VIC: 16 (+ 1=17)