From 4a14a990665f766e349b9027dbf980bc39f395f6 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 31 Dec 2011 00:10:45 +0000 Subject: Development check-in. --- Noddybox.Emulation.EightBit/IMemory.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Noddybox.Emulation.EightBit/IMemory.cs') diff --git a/Noddybox.Emulation.EightBit/IMemory.cs b/Noddybox.Emulation.EightBit/IMemory.cs index ee41500..2aa63d9 100644 --- a/Noddybox.Emulation.EightBit/IMemory.cs +++ b/Noddybox.Emulation.EightBit/IMemory.cs @@ -15,8 +15,7 @@ using System.Windows.Shapes; namespace Noddybox.Emulation.EightBit { /// - /// Defines an interface for memory. Note that ints are used rather than smaller unsigned types due to the pain of - /// doing boolean operations on anything else in C# without copious casting. + /// Defines an interface for memory. /// public interface IMemory { @@ -24,14 +23,14 @@ namespace Noddybox.Emulation.EightBit /// Reads a byte at a given address. /// /// The address to read. - /// The value at that address in the lower 8-bits. - int Read(int address); + /// The value at that address. + byte Read(ushort address); /// /// Writes a byte at a given address. /// /// The address to write to. - /// The value to write. Only the lower 8-bits are taken. - void Write(int address, int value); + /// The value to write. + void Write(ushort address, byte value); } } -- cgit v1.3