Exemplo n.º 1
0
        public void EmulateGame()
        {
            var data = File.ReadAllBytes("Game.ch8");

            var chip8 = new Chip8();

            chip8.Load(data);

            while (true)
            {
                chip8.Step();
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            GFXMemory vram = new GFXMemory();

            Chip8 chip = new Chip8(vram);

            chip.Init();
            chip.Load(@"C:\Users\Sergio\Downloads\Blinky.ch8");

            Render win = new Render(1200, 600, "Test", vram, chip);

            win.Run(200);
        }
Exemplo n.º 3
0
 private void TryLoadFile(string filename)
 {
     try
     {
         _chip8.Load(File.ReadAllBytes(filename));
         _timer.Enabled = true;
         Text           = Path.GetFileNameWithoutExtension(filename) + $" - {AppName}";
         Properties.Settings.Default.FilePath = filename;
         Properties.Settings.Default.Save();
     }
     catch (Exception ex)
     {
         Text = AppName;
         Error(ex);
     }
 }