From e195004433d550fb5e697bdf5039b18f9048b208 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 27 Jan 2015 00:54:11 +0000 Subject: [PATCH] atari 7800 - make a few memory domains explicitly read-only instead of silently failing on write --- .../Consoles/Atari/7800/Atari7800.IMemoryDomains.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs b/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs index c6c2851b3c..e7ab724a74 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs @@ -59,9 +59,9 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800 { return bios[addr]; }, - delegate(long addr, byte val) - { - })); + null + )); + if (hsc7800 != null) { _MemoryDomains.Add(new MemoryDomain( @@ -70,9 +70,8 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800 { return hsbios[addr]; }, - delegate(long addr, byte val) - { - })); + null)); + _MemoryDomains.Add(new MemoryDomain( "HSC RAM", hsram.Length, MemoryDomain.Endian.Unknown, delegate(long addr) @@ -84,6 +83,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari7800 hsram[addr] = val; })); } + _MemoryDomains.Add(new MemoryDomain( "System Bus", 65536, MemoryDomain.Endian.Unknown, delegate(long addr)