//
// Copyright (c) 2012 Ian Cowburn
//
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. 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.
///
public interface IMemory
{
///
/// 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);
///
/// 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);
}
}