diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-04 12:07:39 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-04 12:07:39 +1000 |
| commit | 72f297a479b6749674ec80e91be53b8c482123d2 (patch) | |
| tree | 05465784b2b5b5adbd695b50e8394c6f78e3a455 /Chip/Q1Cpu.cs | |
| parent | 86452af2d48e2d1883dbfd67316e371f2a593bfe (diff) | |
crowbar
Diffstat (limited to 'Chip/Q1Cpu.cs')
| -rw-r--r-- | Chip/Q1Cpu.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
