Add easy to use Register16 assignment methods

This commit is contained in:
Adrian Conlon
2024-07-01 23:27:35 +01:00
parent a9020ef0f0
commit 0c8ed57b0d
9 changed files with 98 additions and 112 deletions
+2 -4
View File
@@ -54,8 +54,7 @@ namespace EightBit
public byte Read(byte low, byte high)
{
this.Address.Low = low;
this.Address.High = high;
this.Address.Assign(low, high);
return this.Read();
}
@@ -83,8 +82,7 @@ namespace EightBit
public void Write(byte low, byte high, byte value)
{
this.Address.Low = low;
this.Address.High = high;
this.Address.Assign(low, high);
this.Write(value);
}