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.21 by gbeauche, 2003-12-15T15:23:59Z vs.
Revision 1.22 by gbeauche, 2003-12-15T15:25:38Z

# Line 1664 | Line 1664 | static bool patch_68k(void)
1664          wp = (uint16 *)(ROM_BASE + base + 12);
1665          loc = ntohs(wp[1]) + ((uintptr)wp - ROM_BASE) + 2;
1666          static const uint8 scc_init_dat[] = {0x20, 0x78, 0x01, 0xdc, 0x22, 0x78, 0x01, 0xd8};
1667 <        if ((base = find_rom_data(loc, loc + 0x80, scc_init_dat, sizeof(scc_init_dat))) != loc) return false;
1667 >        if ((base = find_rom_data(loc, loc + 0x80, scc_init_dat, sizeof(scc_init_dat))) == 0) return false;
1668          D(bug("scc_init %08lx\n", base));
1669          wp = (uint16 *)(ROM_BASE + base);
1670          *wp++ = htons(M68K_EMUL_OP_RESET);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines