From 72f297a479b6749674ec80e91be53b8c482123d2 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:07:39 +1000 Subject: crowbar --- Chip/Q1Cpu.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Chip/Q1Cpu.cs') diff --git a/Chip/Q1Cpu.cs b/Chip/Q1Cpu.cs index 1124578..910ad64 100644 --- a/Chip/Q1Cpu.cs +++ b/Chip/Q1Cpu.cs @@ -3,6 +3,7 @@ namespace Q1Emu.Chip; using System.Collections.Generic; +using Assembler; public partial class Q1Cpu { @@ -42,7 +43,9 @@ public partial class Q1Cpu public void Clock() { + var pc = this.PC; u16 instruction = this.FetchInstruction(out u8 op, out u8 m1, out u8 m2, out _); + Console.WriteLine($"{pc:X4}: {Disassembler.ParseInstruction(instruction)}"); bool ex = m2 > 0; switch (m1, ex) -- cgit v1.3.1