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 > asymmetric 38 column border?
2017-05-29 12:32
Paulko64

Registered: Jul 2010
Posts: 24
asymmetric 38 column border?

Is there a particular reason why, if I switch to 38 column mode, the side border is not centered anymore? I.e. the left border comes in 7 pixels, and the right border 9 pixels! Why not 8 pixels on both sides?
If I want to center the screen in 38 column mode, I first have to copy everything one character to the left, and then shift the X fine scroll register to it's max value...
2017-05-29 13:02
Oswald

Registered: Apr 2002
Posts: 5094
also why its not 39 column ?
2017-05-29 13:08
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Is there a particular reason why, if I switch to 38 column mode, the side border is not centered anymore? I.e. the left border comes in 7 pixels, and the right border 9 pixels! Why not 8 pixels on both sides?
If I want to center the screen in 38 column mode, I first have to copy everything one character to the left, and then shift the X fine scroll register to it's max value...


Never noticed, but you're right. Poor you. :D
2017-05-29 13:49
Smasher

Registered: Feb 2003
Posts: 520
lft knows. the rest just trolls (like me).
2017-05-29 13:52
ChristopherJam

Registered: Aug 2004
Posts: 1409
Quoting Paulko64
Is there a particular reason why, if I switch to 38 column mode, the side border is not centered anymore?

My best guess is the engineers weren't thinking straight when were under the hammer to get stuff working in time for CES, then had SFA time to revise the design before they went into mass production. TBH it's amazing anything worked; check out any of the histories of the company.
2017-05-29 14:01
Oswald

Registered: Apr 2002
Posts: 5094
Quote: Quoting Paulko64
Is there a particular reason why, if I switch to 38 column mode, the side border is not centered anymore?

My best guess is the engineers weren't thinking straight when were under the hammer to get stuff working in time for CES, then had SFA time to revise the design before they went into mass production. TBH it's amazing anything worked; check out any of the histories of the company.


according to "on the edge" Al Carpentier's VICII worked flawlessly for the first time trying, except 1-2 buggy sprites. My bet would be on transistor sparing, less gates, more simple design, etc.
2017-05-29 14:38
oziphantom

Registered: Oct 2014
Posts: 490
And getting the wrong number of clocks per line...
2017-05-29 15:59
ChristopherJam

Registered: Aug 2004
Posts: 1409
Quoting Oswald
according to "on the edge" Al Carpentier's VICII worked flawlessly for the first time trying, except 1-2 buggy sprites


Damned impressive work.
2017-05-29 17:05
Jammer

Registered: Nov 2002
Posts: 1335
Hah, I came across that coding my thing ;)
2017-05-29 18:57
lft

Registered: Jul 2007
Posts: 369
I'm puzzled by this too. If they hade used 8 pixels on both sides, they could have used 1 MHz logic for the entire border unit, improving yield.

I've got a theory anyway, although it's pure speculation. The current approach creates a symmetry between yscroll and xscroll: The number written into the register is one less than the number of revealed pixels in the top row or left column respectively.

Still, if they wanted symmetry, they should have used 39 columns, and moved both borders three pixels to the right in the wide configuration.

But we also have to be careful about what we wish for: The way it's done in the VIC chip, with a 9-pixel difference in the right border position, virtually guarantees that there is a cycle in which we can open the sideborder. A 40/39-column system would only have a 4-pixel difference, so d016 might well get sampled at two instances within the same clock cycle. Then the sideborder would remain closed forever.
2017-05-29 19:05
Compyx

Registered: Jan 2005
Posts: 631
Aargh, scary. I need my open borders. Please, somebody close this thread ;)
2017-05-29 19:21
Digger

Registered: Mar 2005
Posts: 437
Wait. How about making a vertical split and close/open the masking border (bit #3) each line. Then you can have your 39 columns. For the high price but still :)
2017-05-29 19:43
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Wait. How about making a vertical split and close/open the masking border (bit #3) each line. Then you can have your 39 columns. For the high price but still :)

There is a LOOOONG thread about just that.
2017-05-30 04:23
Oswald

Registered: Apr 2002
Posts: 5094
guess its also possible to close the border per line, but its a pointless excersize :)
2017-05-30 05:19
tlr

Registered: Sep 2003
Posts: 1790
Quote: guess its also possible to close the border per line, but its a pointless excersize :)

Maybe to selectively blank out graphics to something else than black?
2017-05-30 19:45
Digger

Registered: Mar 2005
Posts: 437
Is there a thread on splitting $d011? I can't find it.
2017-05-30 19:58
lft

Registered: Jul 2007
Posts: 369
I think it's this one: Left/Right Border switching in middle of rasterline
It's long, but mostly off-topic.
Also, you probably mean splitting d016, right?
2017-06-04 19:32
Digger

Registered: Mar 2005
Posts: 437
@lft: Nope, I actually meant $d011. There was a Crest demo (Crest Light) with split vertical scroll + logo moving independently, but I guess it must be using char animation. So, VSP is made with $d016, line-cruncher forces badlines but is there any other practical/possible use of splitting $d011?
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
BANDIT/BANDIT-COOL-S..
Krill/Plush
Freeze/Blazon
Jericho/Draco/Tropyx..
REBEL 1/HF
Alakran_64
St0rmfr0nt/Quantum
Brataccas/HF
algorithm
Unlock/Padua/Albion
Holy Moses/Role
Steveboy
E$G/HF ⭐ 7
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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