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

Comparing SheepShaver/src/rom_patches.cpp (file contents):
Revision 1.27 by gbeauche, 2004-02-24T11:12:51Z vs.
Revision 1.28 by gbeauche, 2004-05-15T16:36:41Z

# Line 2228 | Line 2228 | static bool patch_68k(void)
2228          lp = (uint32 *)(ROM_BASE + ntohl(*lp));
2229          lp[0xa9fd & 0x3ff] = htonl(GET_SCRAP_PATCH_SPACE);
2230  
2231 #if __BEOS__
2231          // Patch SynchIdleTime()
2232          if (PrefsFindBool("idlewait")) {
2233                  wp = (uint16 *)(ROM_BASE + find_rom_trap(0xabf7) + 4);  // SynchIdleTime()
2234                  D(bug("SynchIdleTime at %08lx\n", wp));
2235 <                if (ntohs(*wp) == 0x2078) {
2235 >                if (ntohs(*wp) == 0x2078) {                                                             // movea.l      ExpandMem,a0
2236                          *wp++ = htons(M68K_EMUL_OP_IDLE_TIME);
2237                          *wp = htons(M68K_NOP);
2238 <                } else {
2238 >                }
2239 >                else if (ntohs(*wp) == 0x70fe)                                                  // moveq        #-2,d0
2240 >                        *wp++ = htons(M68K_EMUL_OP_IDLE_TIME_2);
2241 >                else {
2242                          D(bug("SynchIdleTime patch not installed\n"));
2243                  }
2244          }
2243 #endif
2245  
2246          // Construct list of all sifters used by sound components in ROM
2247          D(bug("Searching for sound components with type sdev in ROM\n"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines