mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-08 17:19:06 +00:00
Try to minimise use of "Word" from Register16
This commit is contained in:
@@ -50,7 +50,7 @@ namespace EightBit
|
||||
return this.Read();
|
||||
}
|
||||
|
||||
public byte Read(Register16 absolute) => this.Read(absolute.Word);
|
||||
public byte Read(Register16 absolute) => this.Read(absolute.Low, absolute.High);
|
||||
|
||||
public byte Read(byte low, byte high)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace EightBit
|
||||
this.Write(value);
|
||||
}
|
||||
|
||||
public void Write(Register16 absolute, byte value) => this.Write(absolute.Word, value);
|
||||
public void Write(Register16 absolute, byte value) => this.Write(absolute.Low, absolute.High, value);
|
||||
|
||||
public void Write(byte low, byte high, byte value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user