mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-25 09:16:41 +00:00
More analysis suggested tidy ups.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user