Actually, the refresh register is incremented halfway through M1, as the M1 pin is raised. i.e. just before the refresh phase of the M1 cycle.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
81b2b04ddd
commit
c7c9963db3
12
Z80/Z80.cs
12
Z80/Z80.cs
|
@ -442,15 +442,15 @@ namespace EightBit
|
|||
|
||||
protected virtual void OnRaisingM1() => this.RaisingM1?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
protected virtual void OnRaisedM1() => this.RaisedM1?.Invoke(this, EventArgs.Empty);
|
||||
protected virtual void OnRaisedM1()
|
||||
{
|
||||
++this.REFRESH;
|
||||
this.RaisedM1?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
protected virtual void OnLoweringM1() => this.LoweringM1?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
protected virtual void OnLoweredM1()
|
||||
{
|
||||
++this.REFRESH;
|
||||
this.LoweredM1?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
protected virtual void OnLoweredM1() => this.LoweredM1?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
protected virtual void OnRaisingRFSH() => this.RaisingRFSH?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
|
|
Loading…
Reference in New Issue