\r
#ifdef EMU_C68K\r
// interrupt acknowledgment\r
-static void SekIntAck(int level)\r
+static int SekIntAck(int level)\r
{\r
// try to emulate VDP's reaction to 68000 int ack\r
if (level == 4) Pico.video.pending_ints = 0;\r
else if(level == 6) Pico.video.pending_ints &= ~0x20;\r
PicoCpu.irq = 0;\r
+ return CYCLONE_INT_ACK_AUTOVECTOR;\r
}\r
\r
static void SekResetAck()\r
// see if we are not executing trash\r
if (pc < 0x200 || (pc > Pico.romsize+4 && (pc&0xe00000)!=0xe00000)) {\r
PicoCpu.cycles = 0;\r
- PicoCpu.stopped = 1;\r
+ PicoCpu.state_flags |= 1;\r
return 1;\r
}\r
#ifdef EMU_M68K // debugging cyclone\r
CPU_INT_LEVEL = 0;\r
return M68K_INT_ACK_AUTOVECTOR;\r
}\r
+\r
+static int SekTasCallback(void)\r
+{\r
+ return 0; // no writeback\r
+}\r
#endif\r
\r
\r
m68k_set_cpu_type(M68K_CPU_TYPE_68000);\r
m68k_init();\r
m68k_set_int_ack_callback(SekIntAckM68K);\r
+ m68k_set_tas_instr_callback(SekTasCallback);\r
m68k_pulse_reset(); // Init cpu emulator\r
m68k_set_context(oldcontext);\r
}\r
if (Pico.rom==NULL) return 1;\r
\r
#ifdef EMU_C68K\r
- PicoCpu.stopped=0;\r
+ PicoCpu.state_flags=0;\r
PicoCpu.osp=0;\r
PicoCpu.srh =0x27; // Supervisor mode\r
PicoCpu.flags=4; // Z set\r
\r
int SekInterrupt(int irq)\r
{\r
+#if defined(EMU_C68K) && defined(EMU_M68K)\r
+ {\r
+ extern unsigned int dbg_irq_level;\r
+ dbg_irq_level=irq;\r
+ return 0;\r
+ }\r
+#endif\r
#ifdef EMU_C68K\r
PicoCpu.irq=irq;\r
#endif\r