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?
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: 1101
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: 333
bne T.M.R
2006-09-13 06:29
HCL

Registered: Feb 2003
Posts: 728
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: 5094
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: 5094
fman, why oh why do u wipe out ur ass after shitting? its much simpler to just walk away without that extra effort.
 
... 1 post hidden. Click here to view all posts....
 
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
Bansai/BSILabs
Alakran_64
csabanw
fugu/Excess
MWR/Visdom
celticdesign/G★P/M..
Sychamis
VanessaE/Digital Aud..
Magic/Nah-Kolor
Guests online: 107
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 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (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 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.042 sec.