EightBitNet/EightBit/UnusedMemory.cs

25 lines
988 B
C#
Raw Normal View History

// <copyright file="UnusedMemory.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace EightBit
{
2024-05-19 08:07:20 +00:00
public class UnusedMemory(int size, byte unchanging) : Memory
{
2024-10-09 19:05:37 +00:00
private readonly int _size = size;
private readonly byte _unchanging = unchanging;
2024-10-09 19:05:37 +00:00
public override int Size => _size;
2024-10-09 20:16:55 +00:00
public override int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
2024-10-09 20:16:55 +00:00
public override int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
2024-10-09 20:16:55 +00:00
public override int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new NotImplementedException();
2024-10-09 19:05:37 +00:00
public override byte Peek(ushort address) => _unchanging;
2024-10-09 20:16:55 +00:00
protected override void Poke(ushort address, byte value) => throw new NotImplementedException();
}
}