summaryrefslogtreecommitdiff
path: root/Noddybox.Emulation.EightBit/IMemory.cs
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2011-12-31 00:10:45 +0000
committerIan C <ianc@noddybox.co.uk>2011-12-31 00:10:45 +0000
commit4a14a990665f766e349b9027dbf980bc39f395f6 (patch)
treeba44e3f58e4792d5e496744a8f3651d5b30b3121 /Noddybox.Emulation.EightBit/IMemory.cs
parentf96332b0913a8a365db73a1af3443c0e225a23d8 (diff)
Development check-in.
Diffstat (limited to 'Noddybox.Emulation.EightBit/IMemory.cs')
-rw-r--r--Noddybox.Emulation.EightBit/IMemory.cs11
1 files changed, 5 insertions, 6 deletions
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
{
/// <summary>
- /// 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.
/// </summary>
public interface IMemory
{
@@ -24,14 +23,14 @@ namespace Noddybox.Emulation.EightBit
/// Reads a byte at a given address.
/// </summary>
/// <param name="address">The address to read.</param>
- /// <returns>The value at that address in the lower 8-bits.</returns>
- int Read(int address);
+ /// <returns>The value at that address.</returns>
+ byte Read(ushort address);
/// <summary>
/// Writes a byte at a given address.
/// </summary>
/// <param name="address">The address to write to.</param>
- /// <param name="value">The value to write. Only the lower 8-bits are taken.</param>
- void Write(int address, int value);
+ /// <param name="value">The value to write.</param>
+ void Write(ushort address, byte value);
}
}