diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-09 13:03:36 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-09 13:03:36 +1000 |
| commit | 252ad79d05e3805f7a8c990e19dccb373a2c5231 (patch) | |
| tree | bd44afa75f65a6daf33c5978f09218bca7aaa973 /Emulator/Chip | |
| parent | 78d73c6e3a6e96b750bc4100f754484890ea650b (diff) | |
cleaned up stack debugger and V registers set to 64
Diffstat (limited to 'Emulator/Chip')
| -rw-r--r-- | Emulator/Chip/Q1Cpu.cs | 6 |
1 files changed, 1 insertions, 5 deletions
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) |
