mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-04 20:31:08 +00:00
25 lines
988 B
C#
25 lines
988 B
C#
// <copyright file="UnusedMemory.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
public class UnusedMemory(int size, byte unchanging) : Memory
|
|
{
|
|
private readonly int _size = size;
|
|
private readonly byte _unchanging = unchanging;
|
|
|
|
public override int Size => _size;
|
|
|
|
public override int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
|
|
|
|
public override int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
|
|
|
|
public override int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
|
|
|
|
public override byte Peek(ushort address) => _unchanging;
|
|
|
|
protected override void Poke(ushort address, byte value) => throw new NotImplementedException();
|
|
}
|
|
}
|