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.36 by gbeauche, 2004-11-13T14:09:15Z vs.
Revision 1.37 by gbeauche, 2004-12-12T18:45:44Z

# Line 1266 | Line 1266 | static bool patch_68k_emul(void)
1266   dr_found:
1267          lp++;
1268          loc = (uintptr)lp - (uintptr)ROMBaseHost;
1269 <        if ((base = rom_powerpc_branch_target(loc)) == 0) base = ROM_BASE + loc;
1269 >        if ((base = rom_powerpc_branch_target(loc)) == 0) base = loc;
1270          static const uint8 dr_ret_dat[] = {0x80, 0xbf, 0x08, 0x14, 0x53, 0x19, 0x4d, 0xac, 0x7c, 0xa8, 0x03, 0xa6};
1271 <        if ((base = find_rom_data(base - ROM_BASE, 0x380000, dr_ret_dat, sizeof(dr_ret_dat))) == 0) return false;
1271 >        if ((base = find_rom_data(base, 0x380000, dr_ret_dat, sizeof(dr_ret_dat))) == 0) return false;
1272          D(bug("dr_ret %08lx\n", base));
1273          if (base != loc) {
1274                  // OldWorld ROMs contain an absolute branch

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines