mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-09-30 23:16:30 +00:00
Try to bring the Z80 fusetest back to life
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user