static INT32 GalDoReset() { if (GalS2650Rom1Size) { s2650Open(0); s2650Reset(); s2650Close(); } if (GalZ80Rom1Size) { ZetOpen(0); if (!strcmp(BurnDrvGetTextA(DRV_NAME), "4in1")) { ZetMapArea(0x0000, 0x3fff, 0, GalZ80Rom1); ZetMapArea(0x0000, 0x3fff, 2, GalZ80Rom1); } ZetReset(); ZetClose(); } if (GalZ80Rom2Size) { ZetOpen(1); ZetReset(); ZetClose(); } if (GalZ80Rom3Size) { ZetOpen(2); ZetReset(); ZetClose(); } GalSoundReset(); HiscoreReset(); GalIrqFire = 0; GalFlipScreenX = 0; GalFlipScreenY = 0; ZigzagAYLatch = 0; GalSoundLatch = 0; GalSoundLatch2 = 0; KingballSpeechDip = 0; KingballSound = 0; GalStarsEnable = 0; GalStarsScrollPos = 0; GalBackgroundRed = 0; GalBackgroundGreen = 0; GalBackgroundBlue = 0; GalBackgroundEnable = 0; ScrambleProtectionState = 0; ScrambleProtectionResult = 0; MoonwarPortSelect = 0; MshuttleAY8910CS = 0; Fourin1Bank = 0; CavelonBankSwitch = 0; GalVBlank = 0; return 0; }
static void cpu_open(INT32 nCpu) { switch (nCpuType) { case 1: SekOpen(nCpu); break; case 2: VezOpen(nCpu); break; case 3: Sh2Open(nCpu); break; case 4: M6502Open(nCpu); break; case 5: ZetOpen(nCpu); break; case 6: M6809Open(nCpu); break; case 7: HD6309Open(nCpu); break; case 8: break; case 9: s2650Open(nCpu); break; } }