+/*\r
+ * debug stuff\r
+ * (C) notaz, 2006-2008\r
+ *\r
+ * This work is licensed under the terms of MAME license.\r
+ * See COPYING file in the top-level directory.\r
+ */\r
+\r
#include "pico_int.h"\r
\r
-typedef unsigned char u8;\r
\r
static unsigned int pppc, ops=0;\r
extern unsigned int lastread_a, lastread_d[16], lastwrite_cyc_d[16], lastwrite_mus_d[16];\r
#define other_is_stopped() (currentC68k->state_flags&1)\r
#define other_is_tracing() ((currentC68k->state_flags&2)?1:0)\r
#elif defined(EMU_F68K)\r
+static struct M68K_CONTEXT *g_m68kcontext;\r
#define other_set_sub(s) g_m68kcontext=(s)?&PicoCpuFS68k:&PicoCpuFM68k;\r
#define other_get_sr() g_m68kcontext->sr\r
#define other_dar(i) ((unsigned int*)g_m68kcontext->dreg)[i]\r
CycloneRun(currentC68k);\r
return 1-currentC68k->cycles;\r
#elif defined(EMU_F68K)\r
- return fm68k_emulate(1, 0);\r
+ return fm68k_emulate(g_m68kcontext, 1, 0);\r
#endif\r
}\r
\r