notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix yet another sync issue..
[picodrive.git]
/
pico
/
cd
/
memory.c
diff --git
a/pico/cd/memory.c
b/pico/cd/memory.c
index
0551078
..
acf29c6
100644
(file)
--- a/
pico/cd/memory.c
+++ b/
pico/cd/memory.c
@@
-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
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
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