Fix some z80 eight-bit load timing issues. 58 issues remaining

This commit is contained in:
Adrian Conlon
2025-05-03 13:54:18 +01:00
parent 9f2079efae
commit f9754dd62f
3 changed files with 7 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
{
using EightBit;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics;
internal sealed class Checker
@@ -446,7 +447,9 @@
{
actualCycle.Value = null;
}
message += this.ExpandCycle("Actual ", actualCycle);
var actualMessage = this.ExpandCycle("Actual ", actualCycle);
var messagePrefix = expectedCycle is null ? new string(' ', actualMessage.Length + 4) : string.Empty;
message += messagePrefix + actualMessage;
}
Debug.Assert(!string.IsNullOrEmpty(message), "Message should not be empty");
this.Messages.Add(message);

View File

@@ -6,8 +6,8 @@
public IEnumerable<OpcodeTestSuite> OpcodeTests()
{
//var pattern = "fd 7e.json";
//var pattern = "7e.json";
//var pattern = "dd 66.json";
//var pattern = "06.json";
var pattern = "*.json";
foreach (var filename in Directory.EnumerateFiles(this.Location, pattern))
{

View File

@@ -1377,6 +1377,7 @@ namespace Z80
if (memoryZ || memoryY)
{
this.FetchDisplacement();
this.Tick(5);
}
if (memoryZ)