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 ;)
2006-11-27 16:17
Danzig

Registered: Jun 2002
Posts: 434
20 years but still a miracle for some people :D
2006-11-27 16:48
Oswald

Registered: Apr 2002
Posts: 5076
HCL, hehe, well actually I have never opened the sideborders, except of a weak try which was a flickering one line opening. but that was when I had no idea of stable rasters, I didnt even knew why do rasters flicker :)
2006-11-27 18:02
tlr

Registered: Sep 2003
Posts: 1762
Quote: HCL, hehe, well actually I have never opened the sideborders, except of a weak try which was a flickering one line opening. but that was when I had no idea of stable rasters, I didnt even knew why do rasters flicker :)

Actually most early sideborder code didn't use stable rasters.
With 8 sprites it can easily be made self-stablizing, assuming you allow a few wasted lines of flickering border.
People mostly used it for scrollers, so those lines were usually wastable.

An additional feature is that below the sideborder routine, you are on a stable cycle.
2006-11-27 19:01
Danzig

Registered: Jun 2002
Posts: 434
that you also can have with a single line of fld
2006-11-27 19:29
Radiant

Registered: Sep 2004
Posts: 639
Quote: that you also can have with a single line of fld


FLD = Flexible Line Distance; delayed bad line, which doesn't affect timing.

Don't you mean FLI?
2006-11-27 19:37
Danzig

Registered: Jun 2002
Posts: 434
no
2006-11-27 19:38
Oswald

Registered: Apr 2002
Posts: 5076
Anyone else who wanna look smart (mmmm or stupid?:) just post your stabilizing and opening tips here :) how about showing off your skills in a demo instead trying to look smart in something that everyone knows since 20 years ? :P
2006-11-27 19:47
Radiant

Registered: Sep 2004
Posts: 639
Quote: no


I'd very much like to see code using one line of FLD to stabilize the raster, I can't see how it could be done.
2006-11-27 20:17
Scout

Registered: Dec 2002
Posts: 1570
Quote: I'd very much like to see code using one line of FLD to stabilize the raster, I can't see how it could be done.

I guess what Danzig means that it is possible to stabilize the rasters and open the sideborders by delaying the badlines too (just like in FLD).
Downside (ofcourse) is that you can't show gfx/text @ that area. Only sprites.

---
8Bit Mayhem - The C64 Scenemusic Podcast
http://8bitmayhem.untergrund.net
2006-11-27 20:27
Radiant

Registered: Sep 2004
Posts: 639
Scout: How could the raster become stable by delaying badlines? Since BA (and AEC) will only go low if there are sprites on the line there's no way to get it stable that way, and the only other solutions I can see is using a timer, double irq, light pen or half variance, and those have got nothing to do with FLD.
2006-11-27 20:55
Radiant

Registered: Sep 2004
Posts: 639
Not trying to be a smartass, I just wanna know if I've missed something. :-)
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
honza/Hondani
insane/Rabenauge
Grue/Extend
Alakran_64
Didi/Laxity
jmi/Kasettilamerit
kbs/Pht/Lxt
Sentinel/Excess/TREX
wbochar
rambo/Therapy/ Resou..
MWR/Visdom
Guests online: 106
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 Fullscreen Graphicians
1 Joe  (9.7)
2 Veto  (9.6)
3 Facet  (9.6)
4 The Sarge  (9.6)
5 Carrion  (9.5)

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