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 > Ghostbyte / garbage / $3FFF
2008-12-05 11:57
Mace

Registered: May 2002
Posts: 1799
Ghostbyte / garbage / $3FFF

Discussion about the ghostbyte in the comment of Aliens:

Quoting Jammer
so for what extent can i control this 'garbage'? in terms of chars and colours.

The ghostbyte is always black.
It occurs in the upper and lower border, when opened, but also in the 'void' that is created with an FLD routine.

If you want that effect as seen in Aliens, you have to write values to $3FFF in a raster routine.
The byte is repeated over the entire width and height of the borders, as the patterns shows.

BTW, I can't remember ever seeing a 'split raster' in $3FFF...
 
... 46 posts hidden. Click here to view all posts....
 
2008-12-06 10:09
Mace

Registered: May 2002
Posts: 1799
LOL @ Zyron :-)
2008-12-06 13:40
Krill

Registered: Apr 2002
Posts: 2804
Mace: You do lda #$55 : lda #$f0 : lda #$0f and it shows this pattern: .*.*.*.*****........**** - fill a whole screen with it plus sideborder sprites and you have full-screen hires.
2008-12-06 15:55
Mace

Registered: May 2002
Posts: 1799
@ Krill: ah, I see! Interesting.
2008-12-07 18:44
Monte Carlos

Registered: Jun 2004
Posts: 350
Did you know, that the ghostbyte
in multicolor mode is behind / before
Sprites dependent on $d01d and the pixel combination
of a ghostbyte double pixel?
2008-12-07 19:05
Mace

Registered: May 2002
Posts: 1799
Monte Carlos, please rephrase... what do you mean with 'double pixel'?
2008-12-07 21:16
Krill

Registered: Apr 2002
Posts: 2804
Mace: The idle byte is rendered with double-width pixels in multicolour mode.
2008-12-07 21:18
Mace

Registered: May 2002
Posts: 1799
@ Krill: ah, I see! Interesting.

:-)
2008-12-08 09:23
Cruzer

Registered: Dec 2001
Posts: 1048
Monte Carlos: ah, I see! Interesting.

Not sure what it can be used for, but always fascinating to learn something new about something you thought you knew everything about.
2016-05-26 21:32
Scan

Registered: Dec 2015
Posts: 110
Today I ran into something I think is odd. I've got the ghostbyte in a sprite when displaying it in the right side border from X position $68 and up. I get a line the width of a sprite a line above the sprite, of which the middle 8 pixels can be changed using the ghostbyte at $3fff. I've uploaded a demonstration here. GhostbyteInSprite Anyone an idea why this is happening?
2021-03-05 11:58
w4rp8

Registered: Oct 2010
Posts: 9
I see, atleast in vice, that some bits of the ghostbyte could be masked by writing to $d020, $d021 ($d022, $d023 too, but not that stable without further stabilzising timing on the writes).
This works with unstable writes:
ldy color
lda #$27
!:cmp $d012
bcs !-
sty $d020

For such a line the ghostbyte goes from 0x33 to 0x21 without touching $7fff.

I saw this appearing in vice 2.4 only with 7 sprites enabled over that lines. vice 3.3 shows that behaviour, and also in areas without sprites enabled, but not as stable, more like writing to $d022.
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
Exile/Anubis
Mr SQL
Guests online: 297
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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