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.21 by gbeauche, 2005-06-30T10:17:58Z vs.
Revision 1.22 by gbeauche, 2005-07-02T17:51:43Z

# Line 409 | Line 409 | void EmulOp(M68kRegisters *r, uint32 pc,
409                          r->d[0] = (uint32)-7887;
410                          break;
411  
412 +                case OP_CHECK_SYSV: {           // Check we are not using MacOS < 8.1 with a NewWorld ROM
413 +                        r->a[1] = r->d[1];
414 +                        r->a[0] = ReadMacInt32(r->d[1]);
415 +                        uint32 sysv = ReadMacInt16(r->a[0]);
416 +                        D(bug("Detected MacOS version %d.%d.%d\n", (sysv >> 8) & 0xf, (sysv >> 4) & 0xf, sysv & 0xf));
417 +                        if (ROMType == ROMTYPE_NEWWORLD && sysv < 0x0801)
418 +                                r->d[1] = 0;
419 +                        break;
420 +                }
421 +
422                  case OP_NTRB_17_PATCH:
423                          r->a[2] = ReadMacInt32(r->a[7]);
424                          r->a[7] += 4;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines