| |
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? |
|
| |
T.M.R Account closed
Registered: Dec 2001 Posts: 749 |
lda $d012 |
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
cmp #$32 |
| |
Pitcher
Registered: Aug 2006 Posts: 61 |
Cheers lads, thanks for the help. |
| |
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
|
| |
yago
Registered: May 2002 Posts: 333 |
bne T.M.R
|
| |
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.. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
X position interrupts are more handy when it comes to splitting :P |
| |
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. |
| |
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.
|
| |
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. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
maybe he doesnt? =) |