mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-15 13:05:35 +00:00
There may be extra instructions before moving stuff to SCC registers.
This commit is contained in:
parent
24c4ae354c
commit
c3a706d354
@ -1664,7 +1664,7 @@ static bool patch_68k(void)
|
||||
wp = (uint16 *)(ROM_BASE + base + 12);
|
||||
loc = ntohs(wp[1]) + ((uintptr)wp - ROM_BASE) + 2;
|
||||
static const uint8 scc_init_dat[] = {0x20, 0x78, 0x01, 0xdc, 0x22, 0x78, 0x01, 0xd8};
|
||||
if ((base = find_rom_data(loc, loc + 0x80, scc_init_dat, sizeof(scc_init_dat))) != loc) return false;
|
||||
if ((base = find_rom_data(loc, loc + 0x80, scc_init_dat, sizeof(scc_init_dat))) == 0) return false;
|
||||
D(bug("scc_init %08lx\n", base));
|
||||
wp = (uint16 *)(ROM_BASE + base);
|
||||
*wp++ = htons(M68K_EMUL_OP_RESET);
|
||||
|
Loading…
Reference in New Issue
Block a user