mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-20 21:16:29 +00:00
Add easy to use Register16 assignment methods
This commit is contained in:
+2
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user