mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-03-26 02:33:33 +00:00
24 lines
503 B
C#
24 lines
503 B
C#
// <copyright file="Ram.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
public class Ram : Rom
|
|
{
|
|
public Ram(int size)
|
|
: base(size)
|
|
{
|
|
}
|
|
|
|
public Ram()
|
|
: this(0)
|
|
{
|
|
}
|
|
|
|
public override sealed ref byte Reference(ushort address) => ref this.Bytes()[address];
|
|
|
|
public new void Poke(ushort address, byte value) => base.Poke(address, value);
|
|
}
|
|
}
|