void __stdcall Run(EMUHANDLE handle, int32_t run) { Gameboy *emulator = (Gameboy *) handle; if (handle == NULL) return; emulator->Run(run != 0); }
int main(int argc, char** argv) { const bool bRunTests = false; if (bRunTests) { if (!GBTests::TestAll()) { cout << "TESTS FAILED" << endl; } } Gameboy machine; //GBTests::DissassembleRom("Roms/Opus5.gb", "dissasembly.txt"); //machine.LoadROM("Roms/Opus5.gb"); //machine.LoadROM("Roms/02-interrupts.gb"); //machine.LoadROM("Roms/03-op sp,hl.gb"); machine.LoadROM("Roms/01-special.gb"); //machine.LoadROM("Roms/Tetris.gb"); machine.Run(); return 0; }