Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > help with delay table making tech tech
2012-08-13 14:53
Dr.j

Registered: Feb 2003
Posts: 277
help with delay table making tech tech

Hey there again. i want to do a little tech tech effect.
i think i manage Ok with the charsets (took me some time to
arrange right the chars) and i have $d018 and $d016 tables
the main problem is now.. Delay tables . i use this routine
what is the best technique to do "Fine tune" the delays?
i will gladly hear your ideas to do fast delay tables.
i first tried to replace $d016+$d018 with $d021 but it didnt help me much. please don't send me to "missing cycles" article..hehe . btw i don't have any problems to make "rasters" delays but here its different.
ldx #$00
loop:
lda d018tab,x
sta $d018
lda d016,x
sta $d016
ldy delaytab,x
dey
bne *-1
inx
cpx #$2f
bne loop

2012-08-13 14:54
Dr.j

Registered: Feb 2003
Posts: 277
lda d016,x means lda d016tab,x ofcoz.. sorry for that
2012-08-13 15:19
tlr

Registered: Sep 2003
Posts: 1790
There's nothing special with the timing for "tech-tech". It's the same as setting up e.g two MC-colors each line.

Using a timing table might not be the easiest way though.

Setting up to four registers each line shouldn't be a problem if you unroll the code a bit.
EDIT: perhaps two of them have to contain the same value in that case. (e.g $d020/21 + $d016 + $d018).
2012-08-13 18:45
enthusi

Registered: May 2004
Posts: 677
make sure your tables do not cross a page boundary
(and test your code with d020/d021 to see how stable it is, etc. - oops, you did that)
2012-08-13 20:10
chatGPZ

Registered: Dec 2001
Posts: 11386
i wouldnt use a timing table for something like that, better make a loop for 8 rasterlines, thats much easier (and maybe even shorter)
2012-08-14 06:07
Radiant

Registered: Sep 2004
Posts: 639
What groepaz said. Most sensible way to deal with the fact that every 8th line is a badline.
2012-08-14 06:37
Dr.j

Registered: Feb 2003
Posts: 277
Okey i got it guyz. delay tables suck in this case (and i believe in more cases) i will unroll the loop ,7 for
normal line and 8th for "bad line" (21 cycles) thanks
for the help ! appricated
2012-08-14 07:11
chatGPZ

Registered: Dec 2001
Posts: 11386
i think this delaytable thing really only works ok for simple rasterbars type of things... and even then its probably often shorter to unroll the loop. (for some tricky counterexamples, check crossbows supersmall fli display routine on codebase :))
2012-08-14 10:52
Flavioweb

Registered: Nov 2011
Posts: 463
count = *+$0001
ldx #$00
loop
ldy d018tab,x
lda d016tab,x
ldx $d012
cpx $d012
beq *-3
sty $d018
sta $d016
inc count
ldx count
cpx #$2f
bne loop

start this one raster line before where effect should start.
2012-08-14 11:39
tlr

Registered: Sep 2003
Posts: 1790
@flavioweb: I can imagine that as being not entierly glitch free... ;)
2012-08-14 13:02
Danzig

Registered: Jun 2002
Posts: 440
what tlr said.
 
... 15 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Stone/Prosonix/Offence
Peacemaker/CENSOR/Hi..
Epyx/TSA
Brush/Elysium
rikib80
cba
Case/Padua
Steffan/BOOM!
Guests online: 109
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.052 sec.