From 588d60343a68f119ca5e58f4ee7129ac6945ec66 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Tue, 29 Aug 2017 09:40:21 -0400 Subject: [PATCH] Delete Atari7800.IMemoryDomains.cs --- .../Atari/7800/Atari7800.IMemoryDomains.cs | 93 ------------------- 1 file changed, 93 deletions(-) delete mode 100644 BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs b/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs deleted file mode 100644 index abc645e827..0000000000 --- a/BizHawk.Emulation.Cores/Consoles/Atari/7800/Atari7800.IMemoryDomains.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System; -using System.Collections.Generic; - -using BizHawk.Emulation.Common; -using EMU7800.Core; - -namespace BizHawk.Emulation.Cores.Atari.Atari7800 -{ - public partial class Atari7800 - { - private List _MemoryDomains; - - private IMemoryDomains MemoryDomains; - - public void SetupMemoryDomains(HSC7800 hsc7800) - { - // reset memory domains - if (_MemoryDomains == null) - { - _MemoryDomains = new List(); - if (_theMachine is Machine7800) - { - _MemoryDomains.Add(new MemoryDomainDelegate( - "RAM", 0x1000, MemoryDomain.Endian.Unknown, - delegate(long addr) - { - if (addr < 0 || addr >= 0x1000) - { - throw new ArgumentOutOfRangeException(); - } - - if (addr < 0x800) - { - return ((Machine7800)_theMachine).RAM1[(ushort)addr]; - } - - return ((Machine7800)_theMachine).RAM2[(ushort)addr]; - }, - - delegate(long addr, byte val) - { - if (addr < 0 || addr >= 0x1000) - { - throw new ArgumentOutOfRangeException(); - } - else if (addr < 0x800) - { - ((Machine7800)_theMachine).RAM1[(ushort)(addr & 0x800)] = val; - } - else - { - ((Machine7800)_theMachine).RAM2[(ushort)addr] = val; - } - }, 1)); - - _MemoryDomains.Add(new MemoryDomainByteArray( - "BIOS ROM", MemoryDomain.Endian.Unknown, - _bios, false, 1)); - - if (hsc7800 != null) - { - _MemoryDomains.Add(new MemoryDomainByteArray( - "HSC ROM", MemoryDomain.Endian.Unknown, _hsbios, false, 1)); - - _MemoryDomains.Add(new MemoryDomainByteArray( - "HSC RAM", MemoryDomain.Endian.Unknown, _hsram, true, 1)); - } - - _MemoryDomains.Add(new MemoryDomainDelegate( - "System Bus", 65536, MemoryDomain.Endian.Unknown, - delegate(long addr) - { - if (addr < 0 || addr >= 0x10000) - throw new ArgumentOutOfRangeException(); - return _theMachine.Mem[(ushort)addr]; - }, - delegate(long addr, byte val) - { - if (addr < 0 || addr >= 0x10000) - throw new ArgumentOutOfRangeException(); - _theMachine.Mem[(ushort)addr] = val; - }, 1)); - } - else // todo 2600? - { - } - - MemoryDomains = new MemoryDomainList(_MemoryDomains); - (ServiceProvider as BasicServiceProvider).Register(MemoryDomains); - } - } - } -}