fix yet another sync issue..
[picodrive.git] / pico / cd / memory.c
index 0551078..acf29c6 100644 (file)
@@ -67,6 +67,12 @@ static void remap_word_ram(u32 r3);
 void m68k_comm_check(u32 a)\r
 {\r
   pcd_sync_s68k(SekCyclesDone(), 0);\r
+  if (a >= 0x0e && !Pico_mcd->m.need_sync) {\r
+    // there are cases when slave updates comm and only switches RAM\r
+    // over after that (mcd1b), so there must be a resync..\r
+    SekEndRun(64);\r
+    Pico_mcd->m.need_sync = 1;\r
+  }\r
   if (SekNotPolling || a != Pico_mcd->m.m68k_poll_a) {\r
     Pico_mcd->m.m68k_poll_a = a;\r
     Pico_mcd->m.m68k_poll_cnt = 0;\r