Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user tomek ! (Registered 2024-11-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Left/Right Border switching in middle of rasterline
2016-10-22 19:58
Monte Carlos

Registered: Jun 2004
Posts: 358
Left/Right Border switching in middle of rasterline

The last days i experimented a little with bit 3 of $d016. I had the brainfart to broaden the border on the left and keep it normal on the right. Disappointingly, this seems to work only in every non badline. If i try to switch bit 3 of $d016 during a badline i either get both left and right borders equal or i turn off the border completely for the next rasterline. Does somebody have an explanation in terms of internal VIC timing? I also tried modifying the timing with sprites or HSP to be able to write to $d016 in the correct cycle.
 
... 42 posts hidden. Click here to view all posts....
 
2016-10-23 21:42
chatGPZ

Registered: Dec 2001
Posts: 11351
Quote:
DMA usually refers to speed up copying between memory and a true I/O device, or memcopy, etc. usually involves a DMA controller too.

DMA usually refers to "direct memory access" - which is when anything that isn't the main CPU accesses the memory (without CPU intervention). no more no less.
2016-10-24 06:47
Frantic

Registered: Mar 2003
Posts: 1646
EDIT: Nothing (but I certainly agree wth Gpz, Lft and others)
2016-10-24 12:07
Monte Carlos

Registered: Jun 2004
Posts: 358
I now tried the line doubling trick. By decreasing $d011 by one on the right side of the line before the natural badline, the timing can be adjusted so that the left border is broad and the right is small (at least in x64sc). This applies to the first rasterline of the charrow duplicate. However, in the duplicated charrow an idle byte appears in column 39.
However, this could be fixed by using a modified charset with the last char having the desired pattern.
2016-10-24 14:38
tlr

Registered: Sep 2003
Posts: 1787
Quote: I now tried the line doubling trick. By decreasing $d011 by one on the right side of the line before the natural badline, the timing can be adjusted so that the left border is broad and the right is small (at least in x64sc). This applies to the first rasterline of the charrow duplicate. However, in the duplicated charrow an idle byte appears in column 39.
However, this could be fixed by using a modified charset with the last char having the desired pattern.


Although I believe we got x64sc mostly right, make sure to verify that on a real c64 first.
2016-10-24 15:04
Mixer

Registered: Apr 2008
Posts: 447
Picture or screen capture would be worth a thousand words.
2016-10-24 15:44
Rastah Bar
Account closed

Registered: Oct 2012
Posts: 336
I guess you could also make the left border small and the right border broad instead. Do you also see an idle byte then?
2016-10-24 19:29
Monte Carlos

Registered: Jun 2004
Posts: 358
The idle byte seems to be independent of how the border is displayed. Of course i test it on the real thing, however i transferred last time before i made my initial post.
At this time x64sc and my 128D in 64 mode showed same output.
Sorry, the code is on my 13" notebook already packed to use the noon break on work for coding..
I can upload a screenshot tomorrow.
2016-10-25 10:55
Monte Carlos

Registered: Jun 2004
Posts: 358
Ok, this works. Just follow the link

https://www.dropbox.com/s/4itioa1abhl6oc3/leftBroadRightSmall.P..

Meanwhile i tested it on original. It works and it has the same output as x64sc. You got it right.
2016-10-25 19:38
Rastah Bar
Account closed

Registered: Oct 2012
Posts: 336
Cool. The idle byte seems to be shifted down by 1 line. Where does it get its color from?

Can't you hide it by making the right border broad instead?
2016-10-25 19:55
Monte Carlos

Registered: Jun 2004
Posts: 358
From the lo nibble of the opcode following the st? $d011 (?=a|x|y).
Previous - 1 | 2 | 3 | 4 | 5 | 6 - 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
Critikill (CK)/S16 ^..
celticdesign/G★P/M..
Barfly/Extend
Gregfeel/Lepsi De, S..
iAN CooG/HVSC
TLF/Sonic Uproar
Linus/MSL
astaroth/TRSI
Epyx/TSA
The Syndrom/TIA/Pret..
psych
Mojzesh/TGR🇬🇧
Tom-Cat/Nostalgia
Airwolf/F4CG
Weetibix
GeirS
Krill/Plush
VanessaE/Digital Aud..
Case/Padua
theK/ATL
Ghostrider/No Name
hoeppie
Brittle/Dentifrice^(?)
mutetus/Ald ^ Ons
Guests online: 146
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 Halloweed 4 - Blow Y..  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Comaland 100%  (9.6)
10 Fishbomb  (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 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (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.052 sec.