Files
EightBitNet/EightBit/Ram.cs
2024-10-09 20:05:37 +01:00

19 lines
443 B
C#

// <copyright file="Ram.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace EightBit
{
public class Ram(int size) : Rom(size)
{
public Ram()
: this(0)
{
}
public override sealed ref byte Reference(ushort address) => ref Bytes()[address];
public new void Poke(ushort address, byte value) => base.Poke(address, value);
}
}