#ifdef EMU_F68K
{
void *oldcontext = g_m68kcontext;
- g_m68kcontext = &PicoCpuFS68k;
- fm68k_reset();
+ fm68k_reset(&PicoCpuFS68k);
g_m68kcontext = oldcontext;
}
#endif
PicoCpuCS68k.irq=real_irq;
#endif
#ifdef EMU_M68K
- void *oldcontext = m68ki_cpu_p;
- m68k_set_context(&PicoCpuMS68k);
- m68k_set_irq(real_irq);
- m68k_set_context(oldcontext);
+ // avoid m68k_set_irq() for delaying to work
+ PicoCpuMS68k.int_level = real_irq << 8;
#endif
#ifdef EMU_F68K
PicoCpuFS68k.interrupts[0]=real_irq;
return 0;
}
+void SekInterruptClearS68k(int irq)
+{
+ int level_new = new_irq_level(irq);
+
+#ifdef EMU_C68K
+ PicoCpuCS68k.irq = level_new;
+#endif
+#ifdef EMU_M68K
+ CPU_INT_LEVEL = level_new << 8;
+#endif
+#ifdef EMU_F68K
+ PicoCpuFS68k.interrupts[0] = level_new;
+#endif
+}