diff options
Diffstat (limited to 'Emulator/Chip')
| -rw-r--r-- | Emulator/Chip/Q1Cpu.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Emulator/Chip/Q1Cpu.cs b/Emulator/Chip/Q1Cpu.cs index 16489e4..ca5ffc8 100644 --- a/Emulator/Chip/Q1Cpu.cs +++ b/Emulator/Chip/Q1Cpu.cs @@ -49,6 +49,10 @@ public partial class Q1Cpu u16 instruction = this.FetchInstruction(out u8 op, out u8 m1, out u8 m2, out _); if (instruction != 0x0101) Console.WriteLine($"CPU.Clock: {pc:X4} | {Disassembler.ParseInstruction(instruction)}"); + for (int i = Q1Layout.StackStart; i < this.SP; i += 2) + { + Console.WriteLine($"Stack value: {this.Bus.ReadWord((u16) i)}"); + } bool ex = m2 > 0; switch (m1, ex) |
