Try to bring the Z80 fusetest back to life

This commit is contained in:
Adrian Conlon
2025-05-03 02:09:31 +01:00
parent 946121defb
commit 898a2bc7ea
2 changed files with 20 additions and 4 deletions

View File

@@ -13,6 +13,14 @@ namespace EightBit
#endregion
#region Instruction execution events
public event EventHandler<EventArgs>? ReadingMemory;
public event EventHandler<EventArgs>? ReadMemory;
public event EventHandler<EventArgs>? WritingMemory;
public event EventHandler<EventArgs>? WroteMemory;
#endregion
private PinLevel _resetLine;
private PinLevel _intLine;
@@ -142,6 +150,14 @@ namespace EightBit
protected virtual void HandleINT() => this.RaiseINT();
protected void OnReadingMemory() => this.ReadingMemory?.Invoke(this, EventArgs.Empty);
protected void OnReadMemory() => this.ReadMemory?.Invoke(this, EventArgs.Empty);
protected void OnWritingMemory() => this.WritingMemory?.Invoke(this, EventArgs.Empty);
protected void OnWroteMemory() => this.WroteMemory?.Invoke(this, EventArgs.Empty);
protected void MemoryWrite(byte low, byte high)
{
this.Bus.Address.Assign(low, high);