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/IDevice.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Noddybox.Emulation.EightBit/IDevice.cs (limited to 'Noddybox.Emulation.EightBit/IDevice.cs') diff --git a/Noddybox.Emulation.EightBit/IDevice.cs b/Noddybox.Emulation.EightBit/IDevice.cs new file mode 100644 index 0000000..108adf9 --- /dev/null +++ b/Noddybox.Emulation.EightBit/IDevice.cs @@ -0,0 +1,34 @@ +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 +{ + /// + /// Provides an interface for devices for 8-bit processers which used special commands to access + /// devices rather than using memory-mapped IO, for example the Z80. + /// + public interface IDevice + { + /// + /// Read from a device. + /// + /// The address of the device. + /// The byte returned from the device. + byte Read(UInt16 device); + + /// + /// Write to a device. + /// + /// The address of the device. + /// The value to write to the device. + void Write(UInt16 device, byte value); + } +} -- cgit v1.3