mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-22 04:16:47 +00:00
Code analysis corrections.
This commit is contained in:
@@ -15,6 +15,7 @@ namespace EightBit
|
||||
|
||||
public override void PokeWord(ushort address, Register16 value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
Bus.Poke(address, value.Low);
|
||||
Bus.Poke(++address, value.High);
|
||||
}
|
||||
@@ -51,12 +52,14 @@ namespace EightBit
|
||||
|
||||
protected override void PushWord(Register16 value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
Push(value.High);
|
||||
Push(value.Low);
|
||||
}
|
||||
|
||||
protected override void SetWord(Register16 value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
MemoryWrite(value.Low);
|
||||
++Bus.Address.Word;
|
||||
MemoryWrite(value.High);
|
||||
@@ -64,6 +67,7 @@ namespace EightBit
|
||||
|
||||
protected override void SetWordPaged(Register16 value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
MemoryWrite(value.Low);
|
||||
++Bus.Address.Low;
|
||||
MemoryWrite(value.High);
|
||||
|
||||
Reference in New Issue
Block a user