X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Ffame%2Ffamec_opcodes.h;fp=cpu%2Ffame%2Ffamec_opcodes.h;h=ecbc056eaddf7f892601b3e2e85c517d0a21e3bc;hb=8187ba84b7ed56e2535a8381ac66fb5b32414b39;hp=e1e1e4511ecdad3c26d8622b26965ac82f89ada5;hpb=c060a9ab9c428e1ed9c4159b56529a2a36031e44;p=picodrive.git diff --git a/cpu/fame/famec_opcodes.h b/cpu/fame/famec_opcodes.h index e1e1e45..ecbc056 100644 --- a/cpu/fame/famec_opcodes.h +++ b/cpu/fame/famec_opcodes.h @@ -39962,6 +39962,15 @@ RET(14) } #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) { @@ -39974,10 +39983,7 @@ 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) } @@ -39987,8 +39993,7 @@ OPCODE(0x6601_idle) { if (flag_NotZ) { - extern int idle_hit_counter; - idle_hit_counter++; + UPDATE_IDLE_COUNT PC += ((s8)(Opcode & 0xFE)) >> 1; m68kcontext.io_cycle_counter = 8; } @@ -39999,8 +40004,7 @@ OPCODE(0x6701_idle) { if (!flag_NotZ) { - extern int idle_hit_counter; - idle_hit_counter++; + UPDATE_IDLE_COUNT PC += ((s8)(Opcode & 0xFE)) >> 1; m68kcontext.io_cycle_counter = 8; }