Quietust wrote:
85cocoa wrote:
What does Namco 106 have to do with dumping FDS disks?
The Namco 106 mapper has registers at $4800-$4FFF, one of the "special" regions in NES memory which the CopyNES expects to be unused. The Famicom Disk System has registers at $4000-$47FF, the other "special" region. CopyNES can only be configured to work with
one of those at a time (if I'm not mistaken, changing it requires a BIOS update - I'll have to ask kevtris later to confirm this).
Of course, there's also a practical issue which would make FDS dumping difficult - in order to actually
plug in the RAM unit, a significantly large chain of NES->FC and FC->NES converters would be necessary.
Yeah, the way CopyNES works, is it "fakes out" the cartridge. The cartridge's high address lines pass through a multiplexer that lets me substitute the range 4000-47FF or 4800-4FFF to the cartridge while the CPU may be accessing the BIOS or port chip.
To switch between the two areas, you toggle one of the bits on 4016. I believe it's bit 1. This bit basically "flows through" to A11. Thus, A11 will be forced high or low going to the cartridge.
I tried to make some autodetect code, but it didn't work too hot. I think remnants of it still inhabit the BIOS. You could dump FDS or N106 by switching 4016 in the dumper plugin, and by using a special cartridge adaptor I made.
Seems that some cheap carts (sachen carts, and a few pirate carts) actually crash the bus due to slow ROMs or something- plugging in most any Sachen game will result in CopyNES not booting. The solution there is to add 560 ohm resistors in series with each data line. This was easy to do on an NES to famicom converter. If I had to dump NES carts that crashed it, I plugged another converter in
The same trick would work for carts with conflicts- CopyNES always "wins" against the cart, so it's easy enough to switch the mode in the dumper plugin.
I have not written any FDS dumping plugins because I don't know anything about how the FDS works- I do know that you could use the FDS BIOS routines as-is since it's possible to call them from the dumper plugin. Rotating media is definitely not my strong suit.
AFAIK CopyNES defaults to 4800-4FFF being the emitted address, so FDS dumping should be possible natively without doing the resistors in the adaptor trick, and yes it takes a mighty big chain of adaptors to use it! It *does* work though since I have played it through three adaptors chained together. I had to remove the RAM pack from the case though since the damn case was too big still.