mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
More z80 timing fixes, 261 errors
This commit is contained in:
14
Z80/Z80.cs
14
Z80/Z80.cs
@@ -771,11 +771,19 @@ namespace Z80
|
||||
{
|
||||
this.Bus.Address.Assign(this.HL);
|
||||
}
|
||||
if (access == AccessLevel.ReadOnly)
|
||||
|
||||
switch (access)
|
||||
{
|
||||
_ = this.MemoryRead();
|
||||
case AccessLevel.ReadOnly:
|
||||
this.MemoryRead();
|
||||
break;
|
||||
case AccessLevel.WriteOnly:
|
||||
this.Tick();
|
||||
break;
|
||||
default:
|
||||
throw new NotSupportedException("Invalid access level");
|
||||
}
|
||||
this.Tick();
|
||||
|
||||
// Will need a post-MemoryWrite
|
||||
return ref this.Bus.Data;
|
||||
case 7:
|
||||
|
||||
Reference in New Issue
Block a user