summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wpspec/wpspec/Spectrum/Emulation.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpspec/wpspec/Spectrum/Emulation.cs b/wpspec/wpspec/Spectrum/Emulation.cs
index e81f2ed..feeb04d 100644
--- a/wpspec/wpspec/Spectrum/Emulation.cs
+++ b/wpspec/wpspec/Spectrum/Emulation.cs
@@ -234,12 +234,14 @@ namespace wpspec.Spectrum
{
Stopwatch s = Stopwatch.StartNew();
+ z80.ExecutedInstructions = 0;
+
clock.StartFrame();
z80.Run();
z80.MaskableInterrupt(0);
s.Stop();
- Debug.WriteLine("EXEC: {0} ms {1} ticks", s.ElapsedMilliseconds, s.ElapsedTicks);
+ Debug.WriteLine("EXEC: {0} ms {1} ticks (PC = {2:4X}, instructions = {3}", s.ElapsedMilliseconds, s.ElapsedTicks, z80.ProgramCounter, z80.ExecutedInstructions);
}
/// <summary>