From 252ad79d05e3805f7a8c990e19dccb373a2c5231 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Sat, 9 Aug 2025 13:03:36 +1000 Subject: cleaned up stack debugger and V registers set to 64 --- Emulator/Chip/Q1Cpu.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Emulator/Chip/Q1Cpu.cs') diff --git a/Emulator/Chip/Q1Cpu.cs b/Emulator/Chip/Q1Cpu.cs index ca5ffc8..7f60ca6 100644 --- a/Emulator/Chip/Q1Cpu.cs +++ b/Emulator/Chip/Q1Cpu.cs @@ -29,7 +29,7 @@ public partial class Q1Cpu { this.AbortRequested = false; - this.V = new u16[16]; + this.V = new u16[64]; this.SP = Q1Layout.StackStart; this.PushStack(0xFFFF); @@ -49,10 +49,6 @@ 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) -- cgit v1.3.1