| |
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! |
|
| |
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. |
| |
JCB Account closed
Registered: Jun 2002 Posts: 241 |
Same type of thing in VICE, just >1 34 then save a ram dump. |
| |
iAN CooG
Registered: May 2002 Posts: 3194 |
or simply
bank ram
which alters only the monitor internal state w/o affecting the actual location |
| |
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 |
| |
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". |
| |
iAN CooG
Registered: May 2002 Posts: 3194 |
no wonder, atari sux. |
| |
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...
|
| |
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
|
| |
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. |