void mainemuinit() { // initialize cpu memory mem_init(); #ifndef __GP32__ graphics_init(NULL); #else graphics_init(); #endif // initialize the TLCS-900H cpu tlcs_init(); #ifdef DRZ80 Z80_Reset(); #else z80Init(); #endif // if neogeo pocket color rom, act if we are a neogeo pocket color tlcsMemWriteB(0x6F91,tlcsMemReadB(0x00200023)); // pretend we're running in English mode tlcsMemWriteB(0x00006F87,0x01); // kludges & fixes switch (tlcsMemReadW(0x00200020)) { case 0x0059: // Sonic case 0x0061: // Metal SLug 2nd *get_address(0x0020001F) = 0xFF; break; } ngpSoundOff(); //Flavor sound_start(); }
void ngpSoundStart() { ngpRunning = 1; // ? #if defined(DRZ80) || defined(CZ80) Z80_Reset(); #else z80Init(); z80SetRunning(1); #endif }
// Initialize the NGPC sound engine (Z80) void ngpSoundStart() { ngpRunning = 1; // ? #ifdef DRZ80 Z80_Reset(); #else z80Init(); z80SetRunning(1); #endif }