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


Forums > C64 Coding > $39FF instead of $3FFF as alternative bit-pattern for open border
2016-10-11 12:28
YPS

Registered: Oct 2012
Posts: 5
$39FF instead of $3FFF as alternative bit-pattern for open border

I thought it's ALWAYS the last byte of the VIC-bank, that is displayed in the open border area (upper and lower).
But with "Extended Backgroundcolor Mode" on, the value of $39FF (of the VIC-Bank) is shown instead.
A usecase might be, that you can use all spritepointer together with the highest videoram - with "Extended Backgroundcolor Mode" off, the pointer of sprite 7 would be displayed as garbage in the border. Of course, there are solutions to avoid this, but maybe someone else find this usefull.
2016-10-11 13:12
Radiant

Registered: Sep 2004
Posts: 639
This is documented in the VIC article (section 3.7.1) for those who want to know more about the mechanism behind the "ghost byte".
2016-10-11 14:11
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: I thought it's ALWAYS the last byte of the VIC-bank, that is displayed in the open border area (upper and lower).
But with "Extended Backgroundcolor Mode" on, the value of $39FF (of the VIC-Bank) is shown instead.
A usecase might be, that you can use all spritepointer together with the highest videoram - with "Extended Backgroundcolor Mode" off, the pointer of sprite 7 would be displayed as garbage in the border. Of course, there are solutions to avoid this, but maybe someone else find this usefull.


A classic use case is to avoid having the IRQ-pointer ($ffff) end up in the idle-pattern...

A bit off topic:
But if that still is a problem, like it was for me one time, I resorted to KERNEL-ROM pointers and put $00 in $ffff (RAM) since the VIC always read RAM but the CPU reads ROM in that case.
2016-10-11 14:41
Radiant

Registered: Sep 2004
Posts: 639
Quoting JackAsser
A bit off topic:
But if that still is a problem, like it was for me one time, I resorted to KERNEL-ROM pointers and put $00 in $ffff (RAM) since the VIC always read RAM but the CPU reads ROM in that case.

Or just put the IRQ handler in zeropage. ;-)
2016-10-11 17:30
Peiselulli

Registered: Oct 2006
Posts: 81
Or use the NMI instead ..
2016-10-11 17:43
Oswald

Registered: Apr 2002
Posts: 5017
or jmp abs on zeropage..
2016-10-11 21:46
algorithm

Registered: May 2002
Posts: 702
or in the displayed area, change $ffff to your hearts content and then when in the non visible area, change it back to the irq hi pointer. Can be useful in particular if you are not planning on exiting irq during the ghostbyte displaying.
2016-11-03 02:32
mrmedic
Account closed

Registered: Jul 2007
Posts: 4
you can trick the vblank d012 into thinking its no at the end and have full screen.

you have to put a sprite on the end , and it opens it every 12 lines. borderless c64 screen. i done it in a demo for s xpress in grimsby i used the sprites from hawkeye ( that one with the hawns ) it ran across the screen jumping over the scrollers at random times.
2016-11-03 09:02
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: you can trick the vblank d012 into thinking its no at the end and have full screen.

you have to put a sprite on the end , and it opens it every 12 lines. borderless c64 screen. i done it in a demo for s xpress in grimsby i used the sprites from hawkeye ( that one with the hawns ) it ran across the screen jumping over the scrollers at random times.


Wait! What?! (Oo)
2016-11-03 09:10
chatGPZ

Registered: Dec 2001
Posts: 11092
*plop*
2016-11-04 15:10
Radiant

Registered: Sep 2004
Posts: 639
LOL!
 
... 1 post 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
JEZ
Higgie/Kraze/Onslaught
sebalozlepsi
da Blondie/Resource
iAN CooG/HVSC
Sentinel/Excess/TREX
mutetus/Ald ^ Ons
Viti/Hokuto Force
Mihai
Guests online: 135
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 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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