EightBitNet/EightBit/Ram.cs
Adrian Conlon 27e1c5c9f8 Make Register16 a class, rather than struct. Tricky, but a bit faster than before.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-21 19:58:49 +00:00

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);
}
}