ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/emul_op.cpp
(Generate patch)

Comparing SheepShaver/src/emul_op.cpp (file contents):
Revision 1.8 by cebix, 2004-01-12T15:37:18Z vs.
Revision 1.9 by gbeauche, 2004-05-15T16:36:41Z

# Line 456 | Line 456 | void EmulOp(M68kRegisters *r, uint32 pc,
456                          break;
457  
458                  case OP_IDLE_TIME:
459 #if __BEOS__
459                          // Sleep if no events pending
460 <                        if (ReadMacInt32(0x14c) == 0) {
461 <                                sleep(16667);
463 <                        }
464 < #endif
460 >                        if (ReadMacInt32(0x14c) == 0)
461 >                                Delay_usec(16667);
462                          r->a[0] = ReadMacInt32(0x2b6);
463                          break;
464  
465 +                case OP_IDLE_TIME_2:
466 +                        // Sleep if no events pending
467 +                        if (ReadMacInt32(0x14c) == 0)
468 +                                Delay_usec(16667);
469 +                        r->d[0] = (uint32)-2;
470 +                        break;
471 +
472                  default:
473                          printf("FATAL: EMUL_OP called with bogus selector %08x\n", selector);
474                          QuitEmulator();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines