2019-02-04 23:52:21 +00:00
|
|
|
|
// <copyright file="UnusedMemory.cs" company="Adrian Conlon">
|
|
|
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
|
|
|
// </copyright>
|
|
|
|
|
|
|
|
|
|
namespace EightBit
|
2019-02-02 15:12:51 +00:00
|
|
|
|
{
|
2024-05-19 08:07:20 +00:00
|
|
|
|
public class UnusedMemory(int size, byte unchanging) : Memory
|
2019-02-02 15:12:51 +00:00
|
|
|
|
{
|
2024-10-09 19:05:37 +00:00
|
|
|
|
private readonly int _size = size;
|
|
|
|
|
private readonly byte _unchanging = unchanging;
|
2019-02-02 15:12:51 +00:00
|
|
|
|
|
2024-10-09 19:05:37 +00:00
|
|
|
|
public override int Size => _size;
|
2019-02-02 15:12:51 +00:00
|
|
|
|
|
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();
|
2019-02-04 23:52:21 +00:00
|
|
|
|
|
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();
|
2019-02-04 23:52:21 +00:00
|
|
|
|
|
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();
|
2019-02-02 15:12:51 +00:00
|
|
|
|
|
2024-10-09 19:05:37 +00:00
|
|
|
|
public override byte Peek(ushort address) => _unchanging;
|
2019-02-04 23:52:21 +00:00
|
|
|
|
|
2024-10-09 20:16:55 +00:00
|
|
|
|
protected override void Poke(ushort address, byte value) => throw new NotImplementedException();
|
2019-02-02 15:12:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|