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 |