static CPU_EXECUTE( sc61860 ) { sc61860_state *cpustate = get_safe_token(device); do { cpustate->oldpc = cpustate->pc; debugger_instruction_hook(device, cpustate->pc); sc61860_instruction(cpustate); #if 0 /* Are we in HLT-mode? */ if (cpustate->c & 4) { if ((cpustate->config && cpustate->config->ina && (cpustate->config->ina(cpustate)!=0)) || cpustate->timer.t512ms) { cpustate->c&=0xfb; if (cpustate->config->outc) cpustate->config->outc(cpustate->c); } cpustate->icount-=4; } else if(cpustate->c & 8) {} else sc61860_instruction(cpustate); #endif } while (cpustate->icount > 0); }
static int sc61860_execute(int cycles) { sc61860_ICount = cycles; change_pc(sc61860.pc); do { sc61860.oldpc = sc61860.pc; CALL_MAME_DEBUG; sc61860_instruction(); /* Are we in HLT-mode? */ /*if (sc61860.c & 4) { if ((sc61860.config && sc61860.config->ina && (sc61860.config->ina()!=0)) || sc61860.timer.t512ms) { sc61860.c&=0xfb; if (sc61860.config->outc) sc61860.config->outc(sc61860.c); } sc61860_ICount-=4; } else if(sc61860.c & 8) {} else sc61860_instruction();*/ } while (sc61860_ICount > 0); return cycles - sc61860_ICount; }