Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Nicron ! (Registered 2024-05-21) 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?
2006-09-12 19:29
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
lda $d012
2006-09-12 19:32
Burglar

Registered: Dec 2004
Posts: 1048
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: 717
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: 5028
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: 5028
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: 11148
maybe he doesnt? =)
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
cadaver/covertbitops
DeeKay/Crest
psych
Unkle K/Reset Magazi..
Lucifer/TRIAD
Krill/Plush
Guests online: 101
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 No Bounds  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Covert Bitops  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Crest  (9.3)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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