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 > Turning screen off/on
2015-07-10 18:20
The Phantom

Registered: Jan 2004
Posts: 360
Turning screen off/on

Hey all...

Here I am with another perplexing question. Well, for me anyway.

I've been experimenting with code stuffs while having the screen turned off and am impressed with the results.

I was in deep conversation with Elwix last night, talking about this and he thinks it can be done. I myself, could not figure it out. So I'll ask the question, regardless of how it will make me look.

Is it possible to turn off say, HALF the screen while having graphics displayed on the other half?

I'm not looking for code, I just want to know if it is possible, and if you have done it, how difficult it was (if at all).

Thanks for taking the time to read this :D
2015-07-10 18:35
Mixer

Registered: Apr 2008
Posts: 422
Depends on which of the many possible halves you wish to be visible and which not.
2015-07-10 18:36
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
Quoting The Phantom
Is it possible to turn off say, HALF the screen while having graphics displayed on the other half?


No, the VIC-II won't let you mix and match like that.
2015-07-10 18:47
algorithm

Registered: May 2002
Posts: 702
Just fake a blank screen area :-) alternatively you can use a similar method as in removing side borders. Which makes that whole line equivelant to d020. But need to do this every line with precise timing obviously
2015-07-10 19:15
JackAsser

Registered: Jun 2002
Posts: 1989
Using d011 with a simple raster split won't cut it. Turning off the screen normally is done to remove bad lines and get more performance / more stable timing (as in digi playback). You can semi-turn of the screen by altering $d011 every 7th scan line to prevent bad lines from occur. This is essentially a variant of a trick called FLD.
2015-07-10 19:19
Flavioweb

Registered: Nov 2011
Posts: 447
You can turn on/off ALL screen area, setting (or clearing) the DEN bit of $D011 during an arbitrary cycle of raster line $30.
This work only for ALL screen area.
As stated by Algorithm, you can do just the opposite of the "open side border" trick, closing it for all screen lenght...
Badlines still where they are.

I suppose that "the thing that amazes you" is the fact that, with screen "turned off", no badlines are active, so you have more (cpu) time to "do things"...
2015-07-10 19:48
Oswald

Registered: Apr 2002
Posts: 5017
inverse of sideborder removing logically shouldnt happen, hence there is side and middle border unit, right? any explanation on it ? trick shoud be done on the left border?
2015-07-10 20:03
tlr

Registered: Sep 2003
Posts: 1714
Quote: inverse of sideborder removing logically shouldnt happen, hence there is side and middle border unit, right? any explanation on it ? trick shoud be done on the left border?

It's completely logical. Just change the 38/40 column bit so the left side compare to stop rendering the border misses.
2015-07-10 20:03
Flavioweb

Registered: Nov 2011
Posts: 447
Quote: inverse of sideborder removing logically shouldnt happen, hence there is side and middle border unit, right? any explanation on it ? trick shoud be done on the left border?

Vic "turn on" border on cycle 56 and "turn off" border in cycle 17 of the next line.
Doing "the trick" here should keep border closed.
2015-07-10 21:24
Perplex

Registered: Feb 2009
Posts: 254
Using the trick Jackasser mentioned you can also display a fullscreen hires bitmap image without badlines, though with the limitation that colours will be the same for each row.
2015-07-10 22:47
Krill

Registered: Apr 2002
Posts: 2844
Quoting Perplex
Using the trick Jackasser mentioned you can also display a fullscreen hires bitmap image without badlines, though with the limitation that colours will be the same for each row.
Hmm, it's different, i think. Jackasser's approach is moving the screen out of the way by setting YSCROLL in $d011 as rarely as possible, which is once for 7 raster lines. But your suggestion is a variant of line-crunching, which is setting $d011 every line, beginning in the last raster line of a char row.

The Phantom: What is it that you want to achieve? Generally Jackasser's suggestion is the easiest way to get rid of badlines in an arbitrary screen area while displaying graphics data in the remainder. There's also a way to turn off all badlines and thus graphics rendering with just a few writes to $d011 once a frame, so you can display sprites without badline interference.
 
... 8 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
Mike
GI-Joe/MYD!
wil
uneksija
Trazan
WVL/Xenon
Acidchild/Padua
Rare Candy
Menace/Spaceballs
New Design/Excess
rexbeng
Guests online: 141
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

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