More analysis suggested tidy ups.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-02-06 23:41:56 +00:00
parent d6d8c4e13c
commit 0e8a530573
9 changed files with 26 additions and 42 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ namespace EightBit
protected override ushort GetWordPaged(byte page, byte offset)
{
var high = this.BusRead(offset, page);
var low = this.BusRead((byte)(offset + 1), page);
var low = this.BusRead(++offset, page);
return Chip.MakeWord(low, high);
}
@@ -68,7 +68,7 @@ namespace EightBit
protected override void SetWordPaged(byte page, byte offset, ushort value)
{
this.BusWrite(offset, page, Chip.HighByte(value));
this.BusWrite((byte)(offset + 1), page, Chip.LowByte(value));
this.BusWrite(++offset, page, Chip.LowByte(value));
}
}
}