Some simplifications

This commit is contained in:
Adrian Conlon committed 2026-04-07 12:02:31 +01:00
1 parent 284158247b
commit 53e33b9eef
4 files changed
+31 -62

No files matched your search

+2 -29
View File
@@ -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);