mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-22 04:16:47 +00:00
A few small consistency updates:
1) Drop Get/SetPagedByte in favour of normal BusRead/Write 2) Tidy some "using" statements 3) More "expression body" usage, if possible 4) Use field initialisation, rather than construction, if possible 5) Correct IntelProcessor register set/get methods (there were remnants of "copy pasta" code) Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
|
||||
protected override ushort GetWordPaged(byte page, byte offset)
|
||||
{
|
||||
var low = GetBytePaged(page, offset);
|
||||
var high = GetBytePaged(page, (byte)(offset + 1));
|
||||
var low = BusRead(offset, page);
|
||||
var high = BusRead((byte)(offset + 1), page);
|
||||
return MakeWord(low, high);
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
|
||||
protected override void SetWordPaged(byte page, byte offset, ushort value)
|
||||
{
|
||||
SetBytePaged(page, offset, LowByte(value));
|
||||
SetBytePaged(page, (byte)(offset + 1), HighByte(value));
|
||||
BusWrite(offset, page, LowByte(value));
|
||||
BusWrite((byte)(offset + 1), page, HighByte(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user