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


Forums > C64 Coding > Video bank selection...
2005-06-01 10:43
Bizzmo
Account closed

Registered: Mar 2005
Posts: 82
Video bank selection...

I'm in the process of re-learning to code! After 15 years or so I'm more than a little rusty so please excuse any silly questions!

I'm planning a little game, which is currently using the following memory configuration. (At the moment all this is stuffed at $C000. I want to use a bank without a ROM image so I can have as much memory available for graphics.

Data is currently at these offsets:

+$0000 - Screen Buffer 1
+$0400 - Screen Buffer 2
+$0800 - Character Set
+$1000 - Sprites Definitions...

Is this going to cause me a problem? Trying to load data to $D000 causes WinVice to do strange things! ;-)

Any tips would be appreciated!

Bizz.
 
... 12 posts hidden. Click here to view all posts....
 
2005-06-01 12:43
Raf

Registered: Nov 2003
Posts: 343
Quote: I'm embarrassed to say I can't remember if you'll see sprites at $1000-$1fff but I know your own font will not be displayed from that section of memory. Probably just a character/bitmap issue

I think it's not issue but the only way to use char-rom (think from where would vic take the char defs when it is not addresed in his space-range?)
2005-06-01 12:48
iopop

Registered: Dec 2001
Posts: 317
@strykker: Sprites or any gfx will not be visible correctly if placed at $1000-$1fff or $9000-$9fff.

However, Bizzmo want to put his gfx in bank 0. ie. $c000-$ffff which is all good for gfx.
2005-06-01 13:45
Scout

Registered: Dec 2002
Posts: 1570
Quote: @strykker: Sprites or any gfx will not be visible correctly if placed at $1000-$1fff or $9000-$9fff.

However, Bizzmo want to put his gfx in bank 0. ie. $c000-$ffff which is all good for gfx.


I have this nifty little program called "D018 Manager" which generates the correct settings for $DD00, $D018 and the spritepointers.
When I'm home tonight, I'll look it up and post it in CSDB.

R.
---
-= Silicon Ltd. =-
http://www.deco-design.com/scl
2005-06-01 14:17
Bizzmo
Account closed

Registered: Mar 2005
Posts: 82
Great, thanks for all the responses. It sounds as if the only thing causing me problems is loading the data from $D000...

Anyone suggest a way to do this using WinVice? I'm at work, so using a *real* 64 is out of the question! I've tried loading the sprite data in the WinVice monitor, but this doesn't work either.
2005-06-01 14:24
Graham
Account closed

Registered: Dec 2002
Posts: 990
You need to load the sprite data to another location and copy the data to $D000 after that.
2005-06-01 14:31
Scout

Registered: Dec 2002
Posts: 1570
Quote: Great, thanks for all the responses. It sounds as if the only thing causing me problems is loading the data from $D000...

Anyone suggest a way to do this using WinVice? I'm at work, so using a *real* 64 is out of the question! I've tried loading the sprite data in the WinVice monitor, but this doesn't work either.


You have 3 options loading to $D000 with WinVice

Option 1:
Use a ROM image from the Action or Retro Replay cartridge to emulate the cart.

Option 2:
Load using the WinVice monitor.
When you're in the monitor enter "bank ram"
The RAM "under" $D000 (and up) will be visible.
You can now load stuff using the l-command

Option 3:
Load the data in low memory, set the $01 register to #$34 (afaik) and transfer it to $D000 by doing some coding.

R.

---
-= Silicon Ltd. =-
http://www.deco-design.com/scl
2005-06-01 14:46
Bizzmo
Account closed

Registered: Mar 2005
Posts: 82
Thanks very much! :-)
2005-06-01 17:45
Scout

Registered: Dec 2002
Posts: 1570
Quote: Thanks very much! :-)

I've added that D018 Manager tool to CSDB
D018 Manager

R.
---
-= Silicon Ltd. =-
http://www.deco-design.com/scl
2005-06-02 03:48
Majikeyric

Registered: Sep 2002
Posts: 83
Quote: I've added that D018 Manager tool to CSDB
D018 Manager

R.
---
-= Silicon Ltd. =-
http://www.deco-design.com/scl


Thanks! Very useful !
2005-06-02 07:01
JackAsser

Registered: Jun 2002
Posts: 2014
For people having problem with the bits in $01 (like myself) I can strongly recommend C= Hacking, issue 7. (http://www.canberra.edu.au/~scott/C=Hacking/C-Hacking7.html) under topic "Hiding kilobytes". There is a nice matrix there which I use when I get unsure.

/JackAsser
Previous - 1 | 2 | 3 - 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
MWR/Visdom
iceout/Avatar/HF
CreaMD/React
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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