| |
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.
|
|
| |
iopop
Registered: Dec 2001 Posts: 317 |
Use a cart like action replay to load files that are >202 blocks. Normal basic can not load files over $d000. Another solution would be to pack your file with pucrunch/exomizer or any packer of choice.
I can not see any problems with the mem layout. That is as long as you do not need to change the sprites in runtime. Then you have to swap $d000 to ram, change them, swap back to io. |
| |
Stryyker
Registered: Dec 2001 Posts: 468 |
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 |
| |
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?) |
| |
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. |
| |
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 |
| |
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. |
| |
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. |
| |
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 |
| |
Bizzmo Account closed
Registered: Mar 2005 Posts: 82 |
Thanks very much! :-) |
| |
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 |
... 12 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 - Next |