mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-11-16 05:05:09 +00:00
224000c4c7
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
// <copyright file="UnusedMemory.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
using System.IO;
|
|
|
|
public class UnusedMemory : Memory
|
|
{
|
|
private readonly int size;
|
|
private readonly byte unchanging;
|
|
|
|
public UnusedMemory(int size, byte unchanging)
|
|
{
|
|
this.size = size;
|
|
this.unchanging = unchanging;
|
|
}
|
|
|
|
public override int Size => this.size;
|
|
|
|
public override int Load(FileStream file, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
|
|
|
public override int Load(string path, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
|
|
|
public override int Load(byte[] from, int writeOffset = 0, int readOffset = 0, int limit = -1) => throw new System.NotImplementedException();
|
|
|
|
public override byte Peek(ushort address) => this.unchanging;
|
|
|
|
protected override void Poke(ushort address, byte value) => throw new System.NotImplementedException();
|
|
}
|
|
}
|