mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-08-11 02:24:58 +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);
|
|
}
|
|
}
|
|
}
|