mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 05:02:14 +00:00
Some simplifications
This commit is contained in:
1 parent
284158247b
commit
53e33b9eef
4 files changed
+31
-62
No files matched your search
+2
-29
@@ -163,37 +163,16 @@ namespace EightBit
|
||||
|
||||
protected void OnWrittenMemory() => this.WrittenMemory?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
protected void MemoryWrite(byte low, byte high)
|
||||
{
|
||||
this.Bus.Address.Assign(low, high);
|
||||
this.MemoryWrite();
|
||||
}
|
||||
|
||||
protected void MemoryWrite(byte low, byte high, byte data)
|
||||
{
|
||||
this.Bus.Address.Assign(low, high);
|
||||
this.Bus.Data = data;
|
||||
this.MemoryWrite();
|
||||
}
|
||||
|
||||
protected void MemoryWrite(ushort address, byte data)
|
||||
{
|
||||
this.Bus.Address.Word = address;
|
||||
this.Bus.Data = data;
|
||||
this.MemoryWrite();
|
||||
this.MemoryWrite(data);
|
||||
}
|
||||
|
||||
protected void MemoryWrite(Register16 address, byte data)
|
||||
{
|
||||
this.Bus.Address.Assign(address);
|
||||
this.Bus.Data = data;
|
||||
this.MemoryWrite();
|
||||
}
|
||||
|
||||
protected void MemoryWrite(Register16 address)
|
||||
{
|
||||
this.Bus.Address.Assign(address);
|
||||
this.MemoryWrite();
|
||||
this.MemoryWrite(data);
|
||||
}
|
||||
|
||||
protected void MemoryWrite(byte data)
|
||||
@@ -212,12 +191,6 @@ namespace EightBit
|
||||
return this.MemoryRead();
|
||||
}
|
||||
|
||||
protected byte MemoryRead(ushort address)
|
||||
{
|
||||
this.Bus.Address.Word = address;
|
||||
return this.MemoryRead();
|
||||
}
|
||||
|
||||
protected byte MemoryRead(Register16 address)
|
||||
{
|
||||
this.Bus.Address.Assign(address);
|
||||
|
||||
Reference in new issue
Block a user