mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 20:02:27 +00:00
27 lines
656 B
C#
27 lines
656 B
C#
// <copyright file="Memory.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
public interface IMemory
|
|
{
|
|
abstract int Size
|
|
{
|
|
get;
|
|
}
|
|
|
|
byte Peek(ushort address);
|
|
|
|
void Poke(ushort address, byte value);
|
|
|
|
ref byte Reference(ushort address);
|
|
|
|
int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
|
|
int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
|
|
int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1);
|
|
}
|
|
}
|