Try to minimise use of "Word" from Register16

This commit is contained in:
Adrian Conlon
2024-06-30 12:30:07 +01:00
parent 325bee8539
commit d8fad7b988
8 changed files with 157 additions and 68 deletions

View File

@@ -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)
{