summaryrefslogtreecommitdiff
path: root/Q1.core/Arch/Constants/ChipRegisters.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-18 23:08:58 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-18 23:08:58 +1000
commit7d20ff2a8e89e646fa79be69c8d07a512081daba (patch)
tree67433c74d55f778065363010a593c44a0f65296b /Q1.core/Arch/Constants/ChipRegisters.cs
parent0bb62fc65526a0981cd328dea1b09aba8ce0a576 (diff)
test: Add tests for all control instructions and base CPU implementation
Diffstat (limited to 'Q1.core/Arch/Constants/ChipRegisters.cs')
-rw-r--r--Q1.core/Arch/Constants/ChipRegisters.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Q1.core/Arch/Constants/ChipRegisters.cs b/Q1.core/Arch/Constants/ChipRegisters.cs
new file mode 100644
index 0000000..042ce32
--- /dev/null
+++ b/Q1.core/Arch/Constants/ChipRegisters.cs
@@ -0,0 +1,19 @@
+namespace Q1.core.Arch.Constants;
+
+public static class ChipRegisters
+{
+ public const u8 GENERIC_REGISTER_COUNT = 64;
+
+ public const u8 AX = 0x40;
+ public const u8 AH = 0x41;
+ public const u8 AL = 0x42;
+
+ public const u8 DX = 0x44;
+ public const u8 DH = 0x45;
+ public const u8 DL = 0x46;
+
+ public const u8 LX = 0x48;
+
+ public const u8 PC = 0x4C;
+ public const u8 SP = 0x4D;
+} \ No newline at end of file