Core/cpu/konami/konami.cpp
/* execute instructions on this CPU until icount expires */
execute instructions on this CPU until icount expires
execute instructions on this CPU until icount expires
int konamiRun(int cycles)
{
#if defined FBA_DEBUG
	if (!DebugCPU_KonamiInitted) bprintf(PRINT_ERROR, _T("konamiRun called without init\n"));
#endif
	konami_ICount = cycles - konami.extra_cycles;
	nCyclesToDo = konami_ICount;
	konami.extra_cycles = 0;
	if( konami.int_state & (KONAMI_CWAI | KONAMI_SYNC) )
	{
		konami_ICount = 0;
	}
	else
	{
		do
		{
			pPPC = pPC;
			konami.ireg = ROP(PCD);
			PC++;
			(*konami_main[konami.ireg])();
			konami_ICount -= cycles1[konami.ireg];
		} while( konami_ICount > 0 );
		konami_ICount -= konami.extra_cycles;
		konami.extra_cycles = 0;
	}
	konami.nTotalCycles += cycles - konami_ICount;
	return cycles - konami_ICount;
}
int konamiRun ( int cycles ) { #if defined FBA_DEBUG if ( ! DebugCPU_KonamiInitted ) bprintf ( PRINT_ERROR , _T ( " \n " ) ) ; #endif konami_ICount = cycles - konami . extra_cycles ; nCyclesToDo = konami_ICount ; konami . extra_cycles = 0 ; if ( konami . int_state & ( KONAMI_CWAI | KONAMI_SYNC ) ) { konami_ICount = 0 ; } else { do { pPPC = pPC ; konami . ireg = ROP ( PCD ) ; PC ++ ; ( * konami_main [ konami . ireg ] ) ( ) ; konami_ICount -= cycles1 [ konami . ireg ] ; } while ( konami_ICount > 0 ) ; konami_ICount -= konami . extra_cycles ; konami . extra_cycles = 0 ; } konami . nTotalCycles += cycles - konami_ICount ; return cycles - konami_ICount ; }
execute instructions on this CPU until icount expires
execute instructions on this CPU until icount expires