예제 #1
0
파일: cia.cpp 프로젝트: stavrossk/WinUAE
static void RethinkICRA (void)
{
	if (ciaaicr) {
		if (currprefs.cpu_cycle_exact)
			event2_newevent_xx (-1, 2 * CYCLE_UNIT + CYCLE_UNIT / 2, 0x0008, ICRA);
		else
			ICRA (0x0008);
	}
}
예제 #2
0
파일: cia.cpp 프로젝트: stavrossk/WinUAE
static void RethinkICRB (void)
{
	if (ciabicr) {
		if (currprefs.cpu_cycle_exact)
			event2_newevent_xx (-1, 2 * CYCLE_UNIT + CYCLE_UNIT / 2, 0x2000, ICRB);
		else
			ICRB (0x2000);
	}
}
예제 #3
0
void event2_newevent_x_replace(evt t, uae_u32 data, evfunc2 func)
{
	for (int i = 0; i < ev2_max; i++) {
		if (eventtab2[i].active && eventtab2[i].handler == func) {
			eventtab2[i].active = false;
		}
	}
	if (((int)t) <= 0) {
		func(data);
		return;
	}
	event2_newevent_xx(-1, t * CYCLE_UNIT, data, func);
}