mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-11 07:30:10 +00:00
9a06b1743f
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
27 lines
745 B
C#
27 lines
745 B
C#
namespace EightBit
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
|
|
public abstract class Memory
|
|
{
|
|
public abstract int Size
|
|
{
|
|
get;
|
|
}
|
|
|
|
public abstract byte Peek(ushort address);
|
|
|
|
public virtual ref byte Reference(ushort address)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public abstract int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
public abstract int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
public abstract int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
|
|
protected abstract void Poke(ushort address, byte value);
|
|
}
|
|
}
|