Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     var EmulatorState = new EmulatorState();
     var Interpreter = new Interpreter(EmulatorState);
     //EmulatorState.Memory.WriteBytes(0x200, File.ReadAllBytes("../../../games/HIDDEN"));
     EmulatorState.Memory.WriteBytes(0x200, File.ReadAllBytes("../../../games/TETRIS"));
     //EmulatorState.Memory.WriteBytes(0x200, File.ReadAllBytes("../../../games/BRIX"));
     EmulatorState.Registers.PC = 0x200;
     int m = 0;
     while (true)
     {
         Interpreter.ExecuteFrame();
         if ((m++ % 5) == 0) EmulatorState.Display.ConsoleOutput();
         Thread.Sleep(20);
     }
 }