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 > Opening up borders
2006-11-26 22:50
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
2006-11-26 23:25
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.
2006-11-27 01:08
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.
2006-11-27 06:50
Oswald

Registered: Apr 2002
Posts: 5076
yawn.
2006-11-27 07:11
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:
2006-11-27 07:17
Oswald

Registered: Apr 2002
Posts: 5076
oh sorry, looks like I should've posted instead some dumb coding tips that everyone knows since 10 years or more.
2006-11-27 09:05
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...
2006-11-27 09:08
HCL

Registered: Feb 2003
Posts: 727
Wake up! Open sideborder was done about 20 years ago :). However, i'm still not sure that Oswald knows the trick ;).
2006-11-27 09:37
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.
2006-11-27 12:43
raven
Account closed

Registered: Jan 2002
Posts: 137
This video cracked me up hehe
But, whoever programmed that is typing waaay too slow! :)
2006-11-27 13:30
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
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
Grue/Extend
insane/Rabenauge
Sentinel/Excess/TREX
wbochar
rambo/Therapy/ Resou..
MWR/Visdom
Alakran_64
Magic/Nah-Kolor
Brittle/Dentifrice^(?)
Guests online: 129
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Morph  (9.5)
8 Dawnfall V1.1  (9.5)
9 Onscreen 5k  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Performers  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 Jazzcat  (9.5)
3 hedning  (9.4)
4 Elwix  (9.1)
5 Remix  (9.1)

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