MBCn + Battery

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
MBCn + Battery
by on (#171488)
Hi all,

Hopefully a simple question, when a mapper specifies that it has a battery backup should I save the state of the entire RAM out when my emulator exits or is there a range of memory that is specifically battery backed?

Cheers
Re: MBCn + Battery
by on (#171497)
RAM inside the Game Boy is not saved. According to the memory map, most cartridges put all their battery RAM at $A000-$BFFF.
Re: MBCn + Battery
by on (#171498)
Apologies, should have been clearer.

I meant that cart ram when it has it and the MBC is a battery type.

I'll save it all out. Thanks. :-)
Re: MBCn + Battery
by on (#171771)
If the header specifies a smaller RAM than the full $A000-$BFFF range, I guess you only need to save up to that point. MBC2 with its internal RAM only uses the first 512 byte.