Dr.j
Registered: Feb 2003 Posts: 277 |
help to create delay table for raster
hey there , i wonder if there is a good technique to
create delay table according the raster line. for example
i want to do rasters at #$7c (after a "bad line") the table may look like that : 0a,8,8,8 ,8,8,8,1 (for 8 times)
i know raster line is $40 (63 cycles and 23 for bad line)
but i don't know what is the best way to make this tables.
the routine is simple..
which raster line?
c: lda color,x
ldy delay,x
!:dey
bne !-
sta $d020
sta $d021
inx
cpx #$08
bne c
|