mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-11 07:30:10 +00:00
9a06b1743f
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
20 lines
373 B
C#
20 lines
373 B
C#
namespace EightBit
|
|
{
|
|
public class Ram : Rom
|
|
{
|
|
public Ram(int size = 0)
|
|
: base(size)
|
|
{
|
|
}
|
|
|
|
public override sealed ref byte Reference(ushort address) {
|
|
return ref Bytes()[address];
|
|
}
|
|
|
|
public new void Poke(ushort address, byte value)
|
|
{
|
|
base.Poke(address, value);
|
|
}
|
|
}
|
|
}
|