mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-24 14:05:42 +00:00
Simplify intermediate 16-bit register usage
This commit is contained in:
1 parent
53e33b9eef
commit
699791f7a4
10 files changed
+110
-57
No files matched your search
@@ -34,12 +34,12 @@ namespace EightBit
|
||||
into.Low = this.MemoryRead();
|
||||
}
|
||||
|
||||
protected override Register16 GetWordPaged()
|
||||
protected override void GetPagedInto(Register16 into)
|
||||
{
|
||||
this.Intermediate.High = this.MemoryRead();
|
||||
ArgumentNullException.ThrowIfNull(into);
|
||||
into.High = this.MemoryRead();
|
||||
++this.Bus.Address.Low;
|
||||
this.Intermediate.Low = this.MemoryRead();
|
||||
return this.Intermediate;
|
||||
into.Low = this.MemoryRead();
|
||||
}
|
||||
|
||||
protected override void PopInto(Register16 into)
|
||||
@@ -64,7 +64,7 @@ namespace EightBit
|
||||
this.MemoryWrite(value.Low);
|
||||
}
|
||||
|
||||
protected override void SetWordPaged(Register16 value)
|
||||
protected override void SetPaged(Register16 value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
this.MemoryWrite(value.High);
|
||||
|
||||
Reference in new issue
Block a user