| |
Petey21 Account closed
Registered: Nov 2003 Posts: 49 |
Opening up borders
Here's a video (!) I found of a routine to open up the borders on a C64. No sound though, which would've been useful. Any comments on the code?
http://www.youtube.com/watch?v=Kh7xX1u3EME&NR |
|
| |
Radiant
Registered: Sep 2004 Posts: 639 |
Fairly straight forward code, however quite volatile, as it depends on the IRQ getting triggered at exactly the same cycle of the jmp instruction in the main loop every frame, which works if you're lucky and the code is simple but is not a good way of doing it. I'd just have used a double IRQ to stabilize the raster instead; it would've been cleaner and could be done in about the same time if not faster. |
| |
Codey
Registered: Oct 2005 Posts: 79 |
i used to time side borders using $d020 as a visual guide where i was positioned in the current scanline. when everything looked good with no flicker, i'd change the $d020s to $d016s. it helped alot and i didn't have to worry about counting opcode cycles. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
yawn. |
| |
Radiant
Registered: Sep 2004 Posts: 639 |
Codey: It's actually simpler to just count them right from the beginning of the raster code, plus it helps your understanding of the VIC-II a lot more than trial & error until it looks right. :-)
Oh, almost forgot:
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
oh sorry, looks like I should've posted instead some dumb coding tips that everyone knows since 10 years or more. |
| |
null Account closed
Registered: Jun 2006 Posts: 645 |
Quote: oh sorry, looks like I should've posted instead some dumb coding tips that everyone knows since 10 years or more.
Oswald: Not everyone has been coding for a long time, like me... |
| |
HCL
Registered: Feb 2003 Posts: 728 |
Wake up! Open sideborder was done about 20 years ago :). However, i'm still not sure that Oswald knows the trick ;). |
| |
Radiant
Registered: Sep 2004 Posts: 639 |
HCL: Very true, not only is it old but also very simple (in principle at least), and I must admit I was a bit puzzled as to the very reason behind the post. :-)
However, the timing issues with the BA line etc can be quite confusing at first, so I see no harm in discussing it, especially since there are quite a few people here who haven't been at it for very long, myself included. |
| |
raven Account closed
Registered: Jan 2002 Posts: 137 |
This video cracked me up hehe
But, whoever programmed that is typing waaay too slow! :) |
| |
null Account closed
Registered: Jun 2006 Posts: 645 |
Quote: This video cracked me up hehe
But, whoever programmed that is typing waaay too slow! :)
erm... too slow? wait 'till you see me ;) |
... 11 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 - Next |