From 18868128e18d38b706e7df14e8e683e1a9739c17 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:49:22 +1000 Subject: chore: Initial commit --- Q1.core/Arch/ChipLayout.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Q1.core/Arch/ChipLayout.cs (limited to 'Q1.core/Arch/ChipLayout.cs') diff --git a/Q1.core/Arch/ChipLayout.cs b/Q1.core/Arch/ChipLayout.cs new file mode 100644 index 0000000..8c916f6 --- /dev/null +++ b/Q1.core/Arch/ChipLayout.cs @@ -0,0 +1,12 @@ +namespace Q1.core.Arch; + +public static class ChipLayout +{ + public const u16 MEMORY_START = 0x0000; + public const u16 MEMORY_SIZE = 0xFF00; // 64KB - 256 bytes reserved for stack + + public const u16 STACK_START = ChipLayout.MEMORY_START; + public const u16 STACK_SIZE = 256 * 2; // 256 words (512 bytes) + + public const u16 PROGRAM_START = ChipLayout.MEMORY_START + ChipLayout.STACK_SIZE; +} \ No newline at end of file -- cgit v1.3.1