mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
mcd, fix 68k interpreter idle detector for sub cpu
This commit is contained in:
parent
dfda34424a
commit
14ebd37838
2 changed files with 5 additions and 2 deletions
|
@ -404,7 +404,10 @@ int SekRegisterIdlePatch(unsigned int pc, int oldop, int newop, void *ctx)
|
|||
(newop&0x200)?'n':'y', is_main68k?'m':'s', idledet_count);
|
||||
|
||||
// XXX: probably shouldn't patch RAM too
|
||||
v = m68k_read16_map[pc >> M68K_MEM_SHIFT];
|
||||
if (is_main68k)
|
||||
v = m68k_read16_map[pc >> M68K_MEM_SHIFT];
|
||||
else
|
||||
v = s68k_read16_map[pc >> M68K_MEM_SHIFT];
|
||||
if (~v & ~((uptr)-1LL >> 1)) // MSB clear?
|
||||
target = (u16 *)((v << 1) + pc);
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue