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/Program.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Emulator/Program.cs') diff --git a/Emulator/Program.cs b/Emulator/Program.cs index 3104fa9..c5ae852 100644 --- a/Emulator/Program.cs +++ b/Emulator/Program.cs @@ -18,10 +18,10 @@ internal class Program { Q1Cpu cpu = new(); Bus bus = new(u16.MinValue, u16.MaxValue); - RamDevice ram = new(0x1FFF, 1024 * 8); - File.ReadAllBytes(options.InputFile).CopyTo(ram.Memory, 0); + RamDevice rom = new(Q1Layout.Rom.start, Q1Layout.Rom.size); + File.ReadAllBytes(options.InputFile).CopyTo(rom.Memory, 0); - DisplayDevice display = new(16, 64, 32, 0x3FFF); + DisplayDevice display = new(16, 64, 32, Q1Layout.Display); display.SetPalette([ Color.Red, Color.Green, @@ -41,12 +41,12 @@ internal class Program Color.LightGreen ]); - DebugDevice debug = new(0xEFFF); - + RamDevice memory = new(Q1Layout.Memory.start, Q1Layout.Memory.size); + cpu.Bus = bus; - ram.AttachToBus(bus); + rom.AttachToBus(bus); display.AttachToBus(bus); - debug.AttachToBus(bus); + memory.AttachToBus(bus); Thread t = new(() => { -- cgit v1.3.1