From db6bbe22bb8c33ebfaf012eba13610cb887f1675 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 18 Mar 2020 15:48:32 -0500 Subject: [PATCH] A2600 - expose CartRam memory domain for mCM and mFA --- .../Consoles/Atari/2600/Mappers/mCM.cs | 10 ++++++---- .../Consoles/Atari/2600/Mappers/mFA.cs | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mCM.cs b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mCM.cs index 6ced4ebe53..b1d00be36f 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mCM.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mCM.cs @@ -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]; diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mFA.cs b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mFA.cs index 2ff48bf12a..58be409c31 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mFA.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Mappers/mFA.cs @@ -22,6 +22,8 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 { } + public override byte[] CartRam => _ram; + public override void SyncState(Serializer ser) { base.SyncState(ser);