Implement some suggestions from the code analysis.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-14 23:51:32 +00:00
parent 63db46a7bc
commit cf4e633034
6 changed files with 35 additions and 57 deletions

View File

@@ -55,10 +55,7 @@ namespace EightBit
return this.Read();
}
public byte Read(Register16 absolute)
{
return this.Read(absolute.Word);
}
public byte Read(Register16 absolute) => this.Read(absolute.Word);
public byte Read(byte low, byte high)
{
@@ -86,10 +83,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.Word, value);
public void Write(byte low, byte high, byte value)
{