From 33e1c5fc6e37549b4eba833ae7e534f9da250b10 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Thu, 7 Aug 2025 00:02:00 +1000 Subject: added binary, logical and bitwise operators to compiler --- Emulator/Program.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'Emulator/Program.cs') diff --git a/Emulator/Program.cs b/Emulator/Program.cs index cd6a8c0..3104fa9 100644 --- a/Emulator/Program.cs +++ b/Emulator/Program.cs @@ -20,9 +20,7 @@ internal class Program Bus bus = new(u16.MinValue, u16.MaxValue); RamDevice ram = new(0x1FFF, 1024 * 8); File.ReadAllBytes(options.InputFile).CopyTo(ram.Memory, 0); - - cpu.PC = ram.AddressableStart; - + DisplayDevice display = new(16, 64, 32, 0x3FFF); display.SetPalette([ Color.Red, @@ -55,13 +53,13 @@ internal class Program cpu.Reset(); while (!cpu.AbortRequested) { - for (int i = 0; i < 64; i++) - cpu.Clock(); - - Thread.Sleep(1); + // for (int i = 0; i < 64; i++) + // cpu.Clock(); + // + // Thread.Sleep(1); // - // cpu.Clock(); - // Thread.Sleep(1000); + cpu.Clock(); + Thread.Sleep(1000); } Console.WriteLine($"Exit code: 0x{cpu.V[0]:X4}"); }); -- cgit v1.3.1