snes ram dumping

Discussion of hardware and software development for Super NES and Super Famicom. See the SNESdev wiki for more information.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
Amelia
Posts: 1
Joined: Thu Jan 11, 2018 1:09 pm

snes ram dumping

Post by Amelia »

Hello. I have taken an interest into the way action replays work. They are essentially rewriting some adresses in the RAM.
In theory, the action replay seems to be able to read the memory, while constantling sending rewriting instructions at the chosen adresses.
I was wondering about reaching the same result with an outside device, arduino or raspberry.
Is there an input / output "channel" for data on the snes ?
Does anybody ever succeeded in dumping the ram in some way ?

I am starting in this and am not an native english speaker, please be patient.

-A
User avatar
TmEE
Posts: 960
Joined: Wed Feb 13, 2008 9:10 am
Location: Norway (50 and 60Hz compatible :P)
Contact:

Re: snes ram dumping

Post by TmEE »

The device hijacks an interrupt vector and does some of its own work (such as overwriting RAM) prior to handing control over to original target code in the game.
User avatar
whicker
Posts: 228
Joined: Sun Dec 13, 2009 11:37 am
Location: Wisconsin

Re: snes ram dumping

Post by whicker »

Amelia

The S-CPU is always driving the address bus. Any writes to in-console RAM or registers must be done with this CPU. You cannot cause the CPU to pause and tri-state its bus to do your own writes. The CPU drives the signals very strongly, and will burn up after a minute if you try to force opposite logic states.

Contents of memory can be snooped on (copied) externally, by watching the CPU interact with its data and address bus.

Here is a project that uses the sd2snes for this, which could conceivably connect to a raspi over USB:
sd2snes usb support
Post Reply