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
|
|
|
|
{
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class UnusedMemory : Memory
|
|
|
|
|
{
|
|
|
|
|
private readonly int size;
|
|
|
|
|
private readonly byte unchanging;
|
|
|
|
|
|
2019-02-04 23:52:21 +00:00
|
|
|
|
public UnusedMemory(int size, byte unchanging)
|
2019-02-02 15:12:51 +00:00
|
|
|
|
{
|
|
|
|
|
this.size = size;
|
|
|
|
|
this.unchanging = unchanging;
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-04 23:52:21 +00:00
|
|
|
|
public override int Size => this.size;
|
2019-02-02 15:12:51 +00:00
|
|
|
|
|
|
|
|
|
public override int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
2019-02-04 23:52:21 +00:00
|
|
|
|
|
2019-02-02 15:12:51 +00:00
|
|
|
|
public override int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
2019-02-04 23:52:21 +00:00
|
|
|
|
|
2019-02-02 15:12:51 +00:00
|
|
|
|
public override int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
|
|
|
|
|
2019-02-04 23:52:21 +00:00
|
|
|
|
public override byte Peek(ushort address) => this.unchanging;
|
|
|
|
|
|
2019-02-02 15:12:51 +00:00
|
|
|
|
protected override void Poke(ushort address, byte value) => throw new System.NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|