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: 5020
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: 491
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: 1627
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
Walt/Bonzai
Jetboy/Elysium
Clayboy
iAN CooG/HVSC
DeMOSic/HF^MS^BCC^LSD
MCM/ONSLAUGHT
Doc Snyder/ONS
Six/G★P
A3/AFL
JEZ
Holy Moses/Role
stephan-a
Guests online: 152
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 Elwix  (9.1)
5 A Life in Hell  (9.1)

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