summaryrefslogtreecommitdiff
path: root/Emulator/Chip/Q1Cpu.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 13:03:36 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 13:03:36 +1000
commit252ad79d05e3805f7a8c990e19dccb373a2c5231 (patch)
treebd44afa75f65a6daf33c5978f09218bca7aaa973 /Emulator/Chip/Q1Cpu.cs
parent78d73c6e3a6e96b750bc4100f754484890ea650b (diff)
cleaned up stack debugger and V registers set to 64
Diffstat (limited to 'Emulator/Chip/Q1Cpu.cs')
-rw-r--r--Emulator/Chip/Q1Cpu.cs6
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)