mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-11-18 02:06:28 +00:00
224000c4c7
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
19 lines
447 B
C#
19 lines
447 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 = 0)
|
|
: base(size)
|
|
{
|
|
}
|
|
|
|
public override sealed ref byte Reference(ushort address) => ref this.Bytes()[address];
|
|
|
|
public new void Poke(ushort address, byte value) => base.Poke(address, value);
|
|
}
|
|
}
|