コード例 #1
0
ファイル: cpuexec.c プロジェクト: Ezio-PS/mame2003-libretro
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;
}
コード例 #2
0
ファイル: arkanoid.cpp プロジェクト: cyberkni/276in1JAMMA
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);
}
コード例 #3
0
ファイル: cpuexec.c プロジェクト: Ezio-PS/mame2003-libretro
void cpu_yield(void)
{
	cpu_yielduntil_trigger(TRIGGER_TIMESLICE);
}
コード例 #4
0
ファイル: cpuexec.c プロジェクト: Ezio-PS/mame2003-libretro
void cpu_yielduntil_int(void)
{
	VERIFY_EXECUTINGCPU_VOID(cpu_yielduntil_int);
	cpu_yielduntil_trigger(TRIGGER_INT + activecpu);
}