From c528862deca86c606cead1c9d199ff22a6b4ac89 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Tue, 17 Mar 2026 23:57:39 +1000 Subject: chore: Cleanup workspace.xml --- Q1.core/Arch/ChipLayout.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Q1.core/Arch/ChipLayout.cs') diff --git a/Q1.core/Arch/ChipLayout.cs b/Q1.core/Arch/ChipLayout.cs index 8c916f6..2948f9a 100644 --- a/Q1.core/Arch/ChipLayout.cs +++ b/Q1.core/Arch/ChipLayout.cs @@ -3,9 +3,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 MEMORY_SIZE = 0x4000; // 16KB of memory (0x0000 to 0x3FFF) - public const u16 STACK_START = ChipLayout.MEMORY_START; + public const u16 IVT_START = ChipLayout.MEMORY_START; + public const u16 IVT_SIZE = 256; // 256 bytes for 128 interrupt vectors (2 bytes each) + + public const u16 STACK_START = ChipLayout.IVT_START + ChipLayout.IVT_SIZE; public const u16 STACK_SIZE = 256 * 2; // 256 words (512 bytes) public const u16 PROGRAM_START = ChipLayout.MEMORY_START + ChipLayout.STACK_SIZE; -- cgit v1.3.1