More "Word" optimisations

This commit is contained in:
Adrian Conlon
2024-06-30 14:36:32 +01:00
parent d8fad7b988
commit 1a9b6d3db6
2 changed files with 61 additions and 24 deletions

View File

@@ -136,6 +136,13 @@ namespace EightBit
protected virtual void HandleINT() => this.RaiseINT();
protected void MemoryWrite(byte low, byte high)
{
this.Bus.Address.Low = low;
this.Bus.Address.High = high;
this.MemoryWrite();
}
protected void MemoryWrite(byte low, byte high, byte data)
{
this.Bus.Address.Low = low;
@@ -151,6 +158,8 @@ namespace EightBit
protected void MemoryWrite(Register16 address, byte data) => this.MemoryWrite(address.Low, address.High, data);
protected void MemoryWrite(Register16 address) => this.MemoryWrite(address.Low, address.High);
protected void MemoryWrite(byte data)
{
this.Bus.Data = data;