diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-07 00:02:00 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-07 00:02:00 +1000 |
| commit | 33e1c5fc6e37549b4eba833ae7e534f9da250b10 (patch) | |
| tree | 051c846326eae94712337baf4ac65ce837d02b95 /Emulator/Chip/Q1Cpu.cs | |
| parent | 7a8d2bcd75d88a5429937bf551878c55e1dcf0fd (diff) | |
added binary, logical and bitwise operators to compiler
Diffstat (limited to 'Emulator/Chip/Q1Cpu.cs')
| -rw-r--r-- | Emulator/Chip/Q1Cpu.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Emulator/Chip/Q1Cpu.cs b/Emulator/Chip/Q1Cpu.cs index 16e1e14..d1fcf7a 100644 --- a/Emulator/Chip/Q1Cpu.cs +++ b/Emulator/Chip/Q1Cpu.cs @@ -5,8 +5,9 @@ using Assembler; public partial class Q1Cpu { - public const u16 StackStart = 0x2FFF; - public const u16 StackLength = 16 * 2; // 16 16-bit values + public const u16 StackStart = 0x2FFF; + public const u16 StackLength = 16 * 2; // 16 16-bit values + public const u16 ProgramStart = 0x1FFF; public Random Random; @@ -18,7 +19,6 @@ public partial class Q1Cpu public u16 PC { get; set; } // Program counter public u16[] V { get; set; } // Variable registers (64 total) - public u16 I { get; set; } // Index register public u16 Cycles { get; set; } // Number of cycles public Bus Bus { get; set; } @@ -38,7 +38,7 @@ public partial class Q1Cpu this.SP = Q1Cpu.StackStart; this.PushStack(0xFFFF); - this.I = 0; + this.PC = Q1Cpu.ProgramStart; } public void Clock() |
