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 > Raster Line?
2006-09-12 19:27
Pitcher

Registered: Aug 2006
Posts: 61
Raster Line?

Hi after recently coming back to the 64 after a long delay and loosing most of my disks, I have started to code again, but the problem i have is i cant remember how i used to detect the Raster/Scan line position.

I used to do a simple load a the screen line value and compare it to a register but i cant remember the register address, and cant find it in any of my old coding books, anyone now anymore?
 
... 1 post hidden. Click here to view all posts....
 
2006-09-12 19:32
Burglar

Registered: Dec 2004
Posts: 1031
cmp #$32
2006-09-12 19:51
Pitcher

Registered: Aug 2006
Posts: 61
Cheers lads, thanks for the help.
2006-09-12 21:52
Devia

Registered: Oct 2004
Posts: 401
Head on over to http://project64.c64.org and grab yourself a copy of the good ol' Programmers Reference Guide at http://project64.c64.org/hw/c64prg10.zip
2006-09-13 00:01
yago

Registered: May 2002
Posts: 332
bne T.M.R
2006-09-13 06:29
HCL

Registered: Feb 2003
Posts: 716
Mostly it's of course better to set up an y-position interrupt to do the screen timing. However, that's some more lines of code..
2006-09-13 12:59
Oswald

Registered: Apr 2002
Posts: 5017
X position interrupts are more handy when it comes to splitting :P
2006-09-13 16:43
Pitcher

Registered: Aug 2006
Posts: 61
Quote: Head on over to http://project64.c64.org and grab yourself a copy of the good ol' Programmers Reference Guide at http://project64.c64.org/hw/c64prg10.zip


Just order me an original copy off ebay, cheers mate.
2006-09-23 08:22
FMan
Account closed

Registered: Dec 2003
Posts: 66
Quote: Mostly it's of course better to set up an y-position interrupt to do the screen timing. However, that's some more lines of code..

Why? I disagree. Using interrupts just adds overhead if you really don't need them (like running something on the background...) and I see no reason why interrupts are even as good a method, nor better - not to mention "of course" better, so please explain your thinking.
2006-09-23 15:39
Oswald

Registered: Apr 2002
Posts: 5017
fman, why oh why do u wipe out ur ass after shitting? its much simpler to just walk away without that extra effort.
2006-09-23 16:19
chatGPZ

Registered: Dec 2001
Posts: 11114
maybe he doesnt? =)
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
Fred/Channel 4
soci/Singular
Menace/Spaceballs
Murphy/Exceed
oziphantom
JEZ
mutetus/Ald ^ Ons
Guests online: 137
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Antitrack  (9.8)
4 Mr Zero Page  (9.8)
5 OTD  (9.8)

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