mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-12-04 18:17:42 +00:00
Make Register16 a class, rather than struct. Tricky, but a bit faster than before.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -6,11 +6,16 @@ namespace EightBit
|
||||
{
|
||||
public class Ram : Rom
|
||||
{
|
||||
public Ram(int size = 0)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user