MBCn + Battery

Discussion of programming and development for the original Game Boy and Game Boy Color.
Post Reply
DParrott
Posts: 25
Joined: Thu Jul 29, 2010 4:39 am

MBCn + Battery

Post by DParrott »

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
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: MBCn + Battery

Post by tepples »

RAM inside the Game Boy is not saved. According to the memory map, most cartridges put all their battery RAM at $A000-$BFFF.
DParrott
Posts: 25
Joined: Thu Jul 29, 2010 4:39 am

Re: MBCn + Battery

Post by DParrott »

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. :-)
Pokun
Posts: 2675
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: MBCn + Battery

Post by Pokun »

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.
Post Reply