| |
enthusi
Registered: May 2004 Posts: 677 |
FUUUCK ghostbyte in Hires
god damn. In HiRes-Bitmap-Mode (NOT ECM) the ghostbyte aint at bank+$3fff.
God knows where it is...
Just posting this so someone else gets less insane about fixing it...
enthusi |
|
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
It's not a ghost byte. I'm quite sure it'll show the $3fff pattern if you read it using a sprite and collision detection. However in hires bitmap mode the $d021 color is never used, but instead the screen colors are used for bg and fg color and the color data is hardwired to 0 in that area, hence black foreground with black background.
To verify it, try place a sprite under the gfx in the border and u'll see the $3fff pattern. |
| |
enthusi
Registered: May 2004 Posts: 677 |
Wicked. Will do. |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
And of course the workaround is to switch back to character mode on line 251. Easy enough to do, as you still need to twiddle d011 when opening the border - the only annoyance is that you need an IRQ at the top of the screen as well to re-enable bitmap mode.
PITA, isn't it?
|
| |
enthusi
Registered: May 2004 Posts: 677 |
@Mager: yeah, that"s what I do now and at least no extra CPU time since d011 is handled anyway. Yet, I MIGHT need a stable raster now where none was needed before. Anyway, the pain was to NOT find this error of mine very quick.
Its the upper VIC Bank too. So lots fiddling with IRQ in Zeropage to circumvent this bug...
@Jackasser, yeah, I see now...interessting even. |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
AFAIK you get the last displayed background color (the color in the bottom right corner) instead of $D021. Same is true for ECM mode.
|
| |
enthusi
Registered: May 2004 Posts: 677 |
no, this really seems to be d021. |