From 4be8082c0df4cfaa58652622beb3b6941d90f609 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 27 Dec 2011 21:52:25 +0000 Subject: Initial solution layout. --- Noddybox.Emulation.EightBit/IMemory.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Noddybox.Emulation.EightBit/IMemory.cs (limited to 'Noddybox.Emulation.EightBit/IMemory.cs') diff --git a/Noddybox.Emulation.EightBit/IMemory.cs b/Noddybox.Emulation.EightBit/IMemory.cs new file mode 100644 index 0000000..5131eb0 --- /dev/null +++ b/Noddybox.Emulation.EightBit/IMemory.cs @@ -0,0 +1,33 @@ +using System; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; + +namespace Noddybox.Emulation.EightBit +{ + /// + /// Defines an interface for memory. + /// + public interface IMemory + { + /// + /// Reads a byte at a given address. + /// + /// The address to read. + /// The value at that address. + byte Read(UInt16 address); + + /// + /// Writes a byte at a given address. + /// + /// The address to write to. + /// The value to write. + void Write(UInt16 address, byte value); + } +} -- cgit v1.3