# | Line 557 | Line 557 | void EmulOp(uint16 opcode, M68kRegisters | |
---|---|---|
557 | r->d[0] = DebugUtil(r->d[0]); | |
558 | break; | |
559 | ||
560 | + | case M68K_EMUL_OP_IDLE_TIME: // SynchIdleTime() patch |
561 | + | // Sleep if no events pending |
562 | + | if (ReadMacInt32(0x14c) == 0) |
563 | + | idle_wait(); |
564 | + | r->a[0] = ReadMacInt32(0x2b6); |
565 | + | break; |
566 | + | |
567 | default: | |
568 | printf("FATAL: EMUL_OP called with bogus opcode %08x\n", opcode); | |
569 | printf("d0 %08x d1 %08x d2 %08x d3 %08x\n" |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |