void cpu_yielduntil_time(double duration) { static int timetrig = 0; cpu_yielduntil_trigger(TRIGGER_YIELDTIME + timetrig); cpu_triggertime(duration, TRIGGER_YIELDTIME + timetrig); timetrig = (timetrig + 1) & 255; }
void arkanoid_Z80_mcu_w (int offset, int value) { /* a write from the Z80 has occurred, mark it and remember the value */ z80write = 1; fromz80 = value; /* give up a little bit of time to let the 68705 detect the write */ cpu_yielduntil_trigger (700); }
void cpu_yield(void) { cpu_yielduntil_trigger(TRIGGER_TIMESLICE); }
void cpu_yielduntil_int(void) { VERIFY_EXECUTINGCPU_VOID(cpu_yielduntil_int); cpu_yielduntil_trigger(TRIGGER_INT + activecpu); }