mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
mcd, minor optimization for poll detection
This commit is contained in:
parent
fdaf9d10bd
commit
b074a2b5b6
2 changed files with 11 additions and 3 deletions
|
@ -345,8 +345,10 @@ void pcd_run_cpus_normal(int m68k_cycles)
|
|||
if (Pico_mcd->m.m68k_poll_cnt >= 16) {
|
||||
int s68k_left;
|
||||
// main CPU is polling, (wake and) run sub only
|
||||
if (SekIsStoppedS68k())
|
||||
if (SekIsStoppedS68k()) {
|
||||
SekSetStopS68k(0);
|
||||
Pico_mcd->m.s68k_poll_cnt = 0;
|
||||
}
|
||||
s68k_left = pcd_sync_s68k(Pico.t.m68c_aim, 1);
|
||||
|
||||
Pico.t.m68c_cnt = Pico.t.m68c_aim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue