public MainForm() { InitializeComponent(); _timer = new Timer(1000 / 30f); _timer.Elapsed += TimerOnElapsed; _emulator = new Emulator(); _emulator.DisplayUpdate += EmulatorOnDisplayUpdate; _emulator.SoundOn += EmulatorOnSoundOn; _emulator.SoundOff += EmulatorOnSoundOff; }
static void Main(string[] args) { Emulator emu = new Emulator(); emu.loadGame(@"I:\Documents\Chip8Emulator\Chip8Emulator\Chip8Emulator\ROM\PONG"); Console.ReadKey(); }