From e62b66dd08ca445d1f7e5b802a503ad3ec83b2df Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:57:26 +1000 Subject: added branching to compiler and comment generation --- Emulator/Q1Layout.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Emulator/Q1Layout.cs (limited to 'Emulator/Q1Layout.cs') diff --git a/Emulator/Q1Layout.cs b/Emulator/Q1Layout.cs new file mode 100644 index 0000000..c3ccd08 --- /dev/null +++ b/Emulator/Q1Layout.cs @@ -0,0 +1,15 @@ +namespace Q1.Emulator; + +public static class Q1Layout +{ + // Bus locations + public static readonly (u16 start, u16 size) Rom = (0x1FFF, 1024 * 8); + public static readonly (u16 start, u16 size) Memory = (0x4FFF, 1024 * 16); + public static readonly u16 Display = 0x3FFF; + + + public static readonly u16 StackStart = Q1Layout.Memory.start; + public static readonly u16 StackLength = 256 * 2; // 256 16-bit values + public static readonly u16 FreeMemoryStart = (u16) (Q1Layout.StackStart + Q1Layout.StackLength); + public static readonly u16 ProgramStart = Q1Layout.Rom.start; +} \ No newline at end of file -- cgit v1.3.1