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); } }
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); } }
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); }