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 > 16x16 char screen, how to mask the 'empty' char on the rest of the screen.
2009-06-11 22:54
Act-Otl

Registered: Feb 2008
Posts: 9
16x16 char screen, how to mask the 'empty' char on the rest of the screen.

Hi,

I'm toying with using a 16x16 char screen for some fast bob (software sprites) routines. This screen uses all available 256 characters. Outside of the 16x16 matrix I also write char 0 to the rest of the screen. This means, that if a point is plotted in character 0, it is repeated all over the screen.

Any solutions for that?

If not, I'll have to go to a smaller (16x15) or a bigger 32x7 over 3 charsets or so...

Cheers...
2009-06-11 23:48
Oswald

Registered: Apr 2002
Posts: 5094
set $d800 outside the mask to background color.
2009-06-12 06:08
Mace

Registered: May 2002
Posts: 1799
I had to read your story twice to understand what you meant :-)
But then, what Oswald says.

Another solution, but FAR too complex, is to multiplex filled sprites all over the screen except for the spot where your matrix is.
But this is just a ridiculous solution, really :-D
2009-06-12 10:22
Skate

Registered: Jul 2003
Posts: 494
mace, if you think your solution is ridiculous, listen to this.

just check the first empty (8 zero bytes) character and update the characters each frame. :))))))))
2009-06-12 11:00
Stainless Steel

Registered: Mar 2003
Posts: 966
Or what about cutting a frame out of cardboard and tape it onto the monitor to cover the outside of the matrix.
2009-06-12 11:23
Frantic

Registered: Mar 2003
Posts: 1648
What about asking the user to pretend not to see the area outside 16x16?
2009-06-12 11:27
Act-Otl

Registered: Feb 2008
Posts: 9
Hi guys,

really appreciate the answers. Why didn't I think about $d800 myself... must be getting lazy.

But in the end, I'm going for the cardboard solution!

Cheers,
Johan
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
deetsay
Peacemaker/CENSOR/Hi..
Mike
MWR/Visdom
icon/The Silents, Sp..
WVL/Xenon
csabanw
MCM/ONSLAUGHT
Guests online: 101
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 No Listen  (9.6)
2 Layers  (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 Censor Design  (9.3)
5 Triad  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

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