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


Forums > C64 Coding > Screen with no Badlines
2004-06-14 08:49
Oswald

Registered: Apr 2002
Posts: 5094
Screen with no Badlines

Hello there!

I know it's possible to have a screenmode with no bad lines at all, graphics are not displayable, but sprites are visible in this one. Once I've coded it but now I totally forgot how it was done.. some d011 fiddling at the start of the bottom border.

Can anyone tell me how to achive this ? Whats the theory ?
2004-06-14 10:37
Krill

Registered: Apr 2002
Posts: 2980
put $00 to $d011 at line $f8, then put $08 there some lines later. effectively, this does what a plain open y-border does, except you simply don't enable the screen-enabled-flag (bit 4).

imho, this works because the internal yborder flipflop is manipulated and so, the yborder opened. the disabled screen normally sets some flag to draw the border (overscan) onto the whole area, yet this can't be achieved because of the already disabled yborder. so effectively, the vic draws the background and the sideborders, plus the sprites which are only overlapped by undisabled sideborder lines.
this theory is just my assumption, i'm not into the vic's internal workings that much.

once you got that badline-less screen working, be sure to do the $00/$08-thingy each frame, as the screen gets completely disabled with the border colour everywhere if you miss to do it. then, the screen can only be enabled again with a bad line somewhere, i.e., an enabled screen with at least the first bad line for at least a frame.
2004-06-15 10:33
WVL

Registered: Mar 2002
Posts: 902
yeah, just do like krill explained. Turn off the screen, but make sure you open the upper+lower border each frame. DONT MISS A SINGLE FRAME, or bye-bye screen ;)

very good way if your effect is sprite-only.

does get a bit messy on some routines, check out Royal Arte with the greyscale sprite-fpp in upper+lower+side borders on side 2, how HCL worked around it.
2004-06-16 09:18
Krill

Registered: Apr 2002
Posts: 2980
the routines wvl mentioned are those where the effect area covers the area where one needs to clear bit 3 in $d011, i.e., lines $f7-$fa, afair. then you need to find free cycles in your effect speed code or loop to put in these at least 4 cycles of code. sometimes gets really tricky when you need every cycle of each line to actually run the effect. ;)
2004-06-21 21:55
JackAsser

Registered: Jun 2002
Posts: 2014
Hehe... didn't know you can disable the badlines this way. =) In all my fullscreen sprite-only effects I keep changing y-scroll each scan line to make sure the badline never occur, like fld. Well, each day one can learn something new about the c64. This would save me quite a lot of cycles.

/JackAsser
2004-06-22 12:53
WVL

Registered: Mar 2002
Posts: 902
Jackasser : it's a quite common trick. The big advantage is that it saves you a lot of cycles each line.

the BIG disadvantage is that you can only use sprites on the screen, and cannot turn on chars at some places on the screen..

also the need for opening the lower border can be quite hard sometimes..
2004-06-23 15:03
bOOZElEE

Registered: Dec 2002
Posts: 35
the only gfx beside sprites which can be displayed is only (in case you use bank0) the byte $3fff, makes not much sense on a stock 64, but in combination with a scpu you can put 4 sprites in the sideborders (2 left/2 right of course) ;) and can produce a nice 408 x 284 (not exactly as some pixels arent in the visible area) hires scren NON interlaced. i did it in 1998 and called it EGMOS (extended graphic mode overscan - any similarity to good old escos is purely coincidental)
some of you may ask why only 408? easy to explain normal screen 40 chars, but i need the last cycle to open the sideborder and hence it is not 24x2 + 320 + 24x2, but 24x2 + 312 + 24x2
best regards
gotta code sumtime again bzl
2004-06-23 18:07
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Interresting stuff!

I'd sure like to see that EGMOS thing
2004-07-07 17:17
Barfly

Registered: Jan 2002
Posts: 5
Actually you can do this trick even without opening the upper/lower borders...

.Barfly
2004-07-09 11:12
bOOZElEE

Registered: Dec 2002
Posts: 35
@ rambones: scpu owner?
2004-07-09 12:11
WVL

Registered: Mar 2002
Posts: 902
Quote: Actually you can do this trick even without opening the upper/lower borders...

.Barfly


how? you have to avoid the VIC starting drawing the border, else the whole screen will flush!
 
... 6 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
iceout/Avatar/HF
krissz
Guests online: 136
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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