mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
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);
|
|
}
|
|
}
|
|
}
|