summaryrefslogtreecommitdiff
path: root/Chip/Q1Cpu.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Chip/Q1Cpu.cs')
-rw-r--r--Chip/Q1Cpu.cs3
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)