More z80 timing fixes, 261 errors

This commit is contained in:
Adrian Conlon committed 2025-05-03 00:51:20 +01:00
1 parent e1aa220409
commit f4f4357a3e
1 file changed
+11 -3
+11 -3
View File
@@ -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: