fix for mounting CDROM after reboot

This commit is contained in:
kanjitalk755 2021-08-30 22:20:26 +09:00
parent ad6047ea24
commit f385c22ed2
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@
void EmulOp(uint16 opcode, M68kRegisters *r)
{
static bool bootflag;
D(bug("EmulOp %04x\n", opcode));
switch (opcode) {
case M68K_EMUL_BREAK: { // Breakpoint
@ -82,6 +83,11 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
break;
case M68K_EMUL_OP_RESET: { // MacOS reset
if (bootflag) {
CDROMExit();
CDROMInit();
}
bootflag = true;
D(bug("*** RESET ***\n"));
TimerReset();
EtherReset();