A2600 - expose CartRam memory domain for mCM and mFA

This commit is contained in:
adelikat 2020-03-18 15:48:32 -05:00
parent 8f860adf51
commit db6bbe22bb
2 changed files with 8 additions and 4 deletions

View File

@ -179,10 +179,6 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
*/
internal class mCM : MapperBase
{
public mCM(Atari2600 core) : base(core)
{
}
// TODO: PokeMem
private byte[] _ram = new byte[2048];
private int _bank4K = 3; // On Start up, controller port is all 1's, so start on the last bank, flags enabled
@ -192,6 +188,12 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
private bool _funcKey;
private bool _shiftKey;
public mCM(Atari2600 core) : base(core)
{
}
public override byte[] CartRam => _ram;
public override void HardReset()
{
_ram = new byte[2048];

View File

@ -22,6 +22,8 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
}
public override byte[] CartRam => _ram;
public override void SyncState(Serializer ser)
{
base.SyncState(ser);