mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-18 18:05:21 +00:00
fix regression introduced in the load of OldWorld ROMs when Direct Addressing
mode was impemented
This commit is contained in:
parent
c10046c137
commit
873377726b
@ -1266,9 +1266,9 @@ static bool patch_68k_emul(void)
|
||||
dr_found:
|
||||
lp++;
|
||||
loc = (uintptr)lp - (uintptr)ROMBaseHost;
|
||||
if ((base = rom_powerpc_branch_target(loc)) == 0) base = ROM_BASE + loc;
|
||||
if ((base = rom_powerpc_branch_target(loc)) == 0) base = loc;
|
||||
static const uint8 dr_ret_dat[] = {0x80, 0xbf, 0x08, 0x14, 0x53, 0x19, 0x4d, 0xac, 0x7c, 0xa8, 0x03, 0xa6};
|
||||
if ((base = find_rom_data(base - ROM_BASE, 0x380000, dr_ret_dat, sizeof(dr_ret_dat))) == 0) return false;
|
||||
if ((base = find_rom_data(base, 0x380000, dr_ret_dat, sizeof(dr_ret_dat))) == 0) return false;
|
||||
D(bug("dr_ret %08lx\n", base));
|
||||
if (base != loc) {
|
||||
// OldWorld ROMs contain an absolute branch
|
||||
|
Loading…
Reference in New Issue
Block a user