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 > Sprite Data in $d000-$dbff?
2011-12-17 15:48
JAC

Registered: Aug 2002
Posts: 57
Sprite Data in $d000-$dbff?

Is there a way to put sprite data in that area? I saves a memory dump of Cybernoid 2 and there should by sprites, but al I see in the memory dump is IO chips and color ram. And how could I save them from VICE?

Cheers, JAC!
2011-12-17 15:54
AmiDog

Registered: Mar 2003
Posts: 97
Sure:

lda #$34
sta $01

; I/O disabled, copy sprite data to $dxxx

lda #$35
sta $01

; IO enabled, setup VIC sprite regs...

As for saving from VICE, I don't know.
2011-12-17 16:25
JCB
Account closed

Registered: Jun 2002
Posts: 241
Same type of thing in VICE, just >1 34 then save a ram dump.
2011-12-17 16:49
iAN CooG

Registered: May 2002
Posts: 3194
or simply
bank ram
which alters only the monitor internal state w/o affecting the actual location
2011-12-17 16:58
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
just >1 34 then save a ram dump.

don't forget sfx on before or it wont quite work =P
2011-12-17 22:05
JAC

Registered: Aug 2002
Posts: 57
Thanks, that did the trick. I was not aware the the C64 can really address the complete 64k. On Atari the 2k I/O area RAM is "lost".
2011-12-17 22:17
iAN CooG

Registered: May 2002
Posts: 3194
no wonder, atari sux.
2011-12-18 07:29
JAC

Registered: Aug 2002
Posts: 57
Does VIC always see the data in RAM irrespective of bit 0 or do I have to make sure I clear it only in the blank phase?

@iAN: This is the coding forum, so you should know it the man, not the machine. But thanks for keeping up stereotypes. The 80ies were great...

2011-12-18 08:08
iAN CooG

Registered: May 2002
Posts: 3194
yes, VIC-II does not need $01 banckswitching to see RAM, including that under $d000-ffff, but always sees copies of the chargen rom at $1000-1fff and $9000-9fff
@JAC: anytime bro!1
2011-12-18 10:02
WVL

Registered: Mar 2002
Posts: 902
Just a small note, while the VIC always sees the a copy of the charset at $1000-$1fff and $9000-$9fff, the cpu does not. You can switch wether the cpu should see the char data or not with $01.

Then there's the color memory at $d800-$dbff. The VIC only sees this memory when it fetches color for the screen, but not when it fetches data (normal RAM) for f.e. sprites, chars or bitmap. (not dependent on $01). The CPU can see the color memory or normal RAM, depending on $01.
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
Walt/Bonzai
Dr. Doom/RAD
MightyAxle
leonofsgr/Singular C..
theK/ATL
Guests online: 83
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 Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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