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 > VIC Bank @ $c000-$ffff
2013-04-03 01:00
robo

Registered: Nov 2012
Posts: 9
VIC Bank @ $c000-$ffff

I'm trying to code a game and got into trouble with free memory space.
So I want to use RAM behind I/O and kernal ROM for graphics data storage.

I know how to manage that $01 and $dd00 things, but how can I upload data to that area >$cfff?
I'm using kernal routines for loading and don't know how to do it another way, so I will have to switch RAM off.
Is it possible since writes to ROM locations are sent to RAM?
I guess at least this will not work for $d000-$dfff.

If I'm totally wrong, how would you do it?
 
... 10 posts hidden. Click here to view all posts....
 
2013-04-03 17:25
tlr

Registered: Sep 2003
Posts: 1790
Quoting JackAsser
How do one guarantee that writing to $dd00 doesn't screw up loading? How did you do it TLR?
I assumed CLK and DATA (and ATN) would be the same state after fetching a byte. A quick check of ACPTR ($EE13) indicates that is true.
So basically I just replicate that setup in every mirror. Timers are set to $FFFF and IRQs and timers disabled.

Quoting Oswald
one other question arises, whats up with mirrored VIC/SID/CIA registers? and I guess mirroring changes from machine to machine, so that demo might not be compatible with all machines.
On all stock C64s it should be the same. On the C128 it is different IIRC (is that true for C64 mode?) but as long as there are no (too evil) side effects on those additional mirrors it could work.

Quoting Count Zero
Also IO1 and 2 need to be taken care of whenever cartridges are active :)
I write those all 00 as I assumed it would be the "safest". Verified working with AR in vice.
In hindsight I should have made the load address $00ae though to force cartridges to use kernal load. Now you need to do OFF.
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
The Syndrom/TIA/Pret..
t0m3000/hf^boom!^ibx
kbs/Pht/Lxt
Fungus/Nostalgia
McMeatLoaf
d0c
ΛΛdZ
Guests online: 108
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

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