}
#ifdef PICODRIVE_HACK
+#if 0
+#define UPDATE_IDLE_COUNT { \
+ extern int idle_hit_counter; \
+ idle_hit_counter++; \
+}
+#else
+#define UPDATE_IDLE_COUNT
+#endif
+
// BRA
OPCODE(0x6001_idle)
{
#else
PC += ((s8)(Opcode & 0xFE)) >> 1;
#endif
- {
- extern int idle_hit_counter;
- idle_hit_counter++;
- }
+ UPDATE_IDLE_COUNT
m68kcontext.io_cycle_counter = 10;
RET(10)
}
{
if (flag_NotZ)
{
- extern int idle_hit_counter;
- idle_hit_counter++;
+ UPDATE_IDLE_COUNT
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}
{
if (!flag_NotZ)
{
- extern int idle_hit_counter;
- idle_hit_counter++;
+ UPDATE_IDLE_COUNT
PC += ((s8)(Opcode & 0xFE)) >> 1;
m68kcontext.io_cycle_counter = 8;
}