SRAM/Save Transfer?

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
DNSDies
Posts: 87
Joined: Thu May 03, 2012 10:26 am

SRAM/Save Transfer?

Post by DNSDies »

Would it be possible, using something like an Everdrive, to transfer save files/sram contents from one cart to another, or write SRAM files from like an Emulator to real cartriges?


I was thinking, like write an SNES rom whose only purpose was to dump an SRAM/Save to SNES's memory, display a message, and remove the everdrive from the SNES and put in the cartridge you want to write to, wait for 10 seconds, then write the contents of memory to SRAM, and display another message.
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Re: SRAM/Save Transfer?

Post by blargg »

Yes, hotswapping as you describe works, at least with normal cartridges. I'm not familiar with the Everdrive, though it sounds like a flash cartridge. You have to disable the CIC inside the SNES, otherwise it'll give a gray screen and reset the CPU when you remove a cart. When hotswapping, it helps to do constant large DMA transfers, which halt the CPU and lessen the chance of it crashing.
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Re: SRAM/Save Transfer?

Post by MottZilla »

You could also use a device like the Game Doctor SF or the Retrode to copy save data. It may be more reliable.

That is a neat trick with the DMA transfers to reduce the possibility of problems.
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Re: SRAM/Save Transfer?

Post by blargg »

The DMA trick can be done on the NES too, by doing 256-byte sprite DMAs with $4014.
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Re: SRAM/Save Transfer?

Post by MottZilla »

Any estimate as to how *less likely* a crash is to occur during hot swapping by using the DMA transfers to stall the CPU? I do recall hearing when you hotswap you should be quick about yanking the cartridges out and quick about inserting the new one back in.
User avatar
rainwarrior
Posts: 8062
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: SRAM/Save Transfer?

Post by rainwarrior »

Well, if the cartridge comes out quickly and smoothly there might be less time with jangly partial connections going on.

On the Famicom, I find a hotswap will fail maybe 1/3-3/4 of the time, depending on the cartridge I'm using, though I've never tried a DMA loop.
Post Reply