summaryrefslogtreecommitdiff
path: root/Emulator/Program.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-07 00:02:00 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-07 00:02:00 +1000
commit33e1c5fc6e37549b4eba833ae7e534f9da250b10 (patch)
tree051c846326eae94712337baf4ac65ce837d02b95 /Emulator/Program.cs
parent7a8d2bcd75d88a5429937bf551878c55e1dcf0fd (diff)
added binary, logical and bitwise operators to compiler
Diffstat (limited to 'Emulator/Program.cs')
-rw-r--r--Emulator/Program.cs16
1 files changed, 7 insertions, 9 deletions
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}");
});