Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Stable rasters
2003-02-04 15:47
Dr. Jay
Account closed

Registered: Jan 2003
Posts: 32
Stable rasters

Was going through some of the old code I wrote, back when I knew how to progam on the C=64, and found this routine. I think it works great. Too bad it's not precise enough (I think) to open the side borders, but it does help with stable rasters. I've seen people do these huge loops with nop / incrementing dummy locations / etc. which I think works great for timing necessary like side borders, and I've also seen code like Xbows where there are actual subroutines that are timed perfect ... anyway, my simple little routine works for rasters:

1. Get a stable raster, either with the sprite method, double interrupt, etc. Then, simply:

ldy #$00
loop lda colors,y
ldx timing,y
synch dex
bne synch
sta $d020
sta $d021
iny
cpy #16 ; number of rasters in table
bne loop

 
... 10 posts hidden. Click here to view all posts....
 
2003-03-07 17:02
TDJ

Registered: Dec 2001
Posts: 1879
Groepaz, could you post that link here? Saves me the trouble of typing it in myself. Thank you.
2003-03-08 01:38
chatGPZ

Registered: Dec 2001
Posts: 11386
http://www.google.com/search?q=c64%20stable%20raster%20source&s..

0> i feel lucky <O

source for that standard double irq thing on c64, and the hcl-preferred double-timer thing for the vic-20 (its very much the same on c64 though, disasm some hcl code :0)).

marko even explains it well as far as i remember...however the link to c=hacking issue with all the info is second or third hit.

eh. you lazy bastard. :o)
2003-03-08 07:55
TDJ

Registered: Dec 2001
Posts: 1879
Why didn't you make it a link? Now I have to cut & paste it .. bastard ..
2004-01-08 07:06
Zodiac
Account closed

Registered: Jan 2004
Posts: 1
I remember using NOP to stabalize the rasters! Boy that brings back the memories...
2004-04-23 16:29
waffieblaffie
Account closed

Registered: Apr 2004
Posts: 1
Back in the 80's we used some routine called 'waitlin' to stabilize rasters. It didn't rely on double ints or sprite irq's or any other funny stuff. Just plain and simple code. It worked by testing $d012 at the right sideborder. It needed about 3 or 4 rasterlines to get the raster stable. Unfortunatly I lost the source. Does anybody know what I'm talking about :)

WaffieBlaffie.
2004-04-24 10:47
Graham
Account closed

Registered: Dec 2002
Posts: 990
3 to 4 lines is too much anyway, less than 2 lines and we're talking.
Previous - 1 | 2 - 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
iAN CooG/HVSC
The Syndrom/TIA/Pret..
CopAss/Leader
Hydrogen/Glance
Yugorin/Samar Produc..
Isildur/Samar
MWR/Visdom
MaD ][/Starship
Guests online: 119
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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