コード例 #1
0
ファイル: tms32031.c プロジェクト: nitrologic/emu
INLINE tms32031_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_TMS32031 ||
		   cpu_get_type(device) == CPU_TMS32032);
	return (tms32031_state *)device->token;
}
コード例 #2
0
ファイル: m6809.c プロジェクト: Artanejp/XM7-for-SDL
INLINE m68_state_t *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_M6809 ||
		   cpu_get_type(device) == CPU_M6809E);
	return (m68_state_t *)device->token;
}
コード例 #3
0
ファイル: mb88xx.c プロジェクト: AltimorTASDK/shmupmametgm
INLINE mb88_state *get_safe_token(running_device *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_MB88 ||
		   cpu_get_type(device) == CPU_MB8841 ||
		   cpu_get_type(device) == CPU_MB8842 ||
		   cpu_get_type(device) == CPU_MB8843 ||
		   cpu_get_type(device) == CPU_MB8844);
	return (mb88_state *)device->token;
}
コード例 #4
0
ファイル: sc61860.c プロジェクト: Paulodx/sdl-mame-wii
INLINE sc61860_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_SC61860);
	return (sc61860_state *)device->token;
}
コード例 #5
0
ファイル: m65ce02.c プロジェクト: nitrologic/emu
INLINE m65ce02_Regs *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_M65CE02);
	return (m65ce02_Regs *)device->token;
}
コード例 #6
0
ファイル: arm.c プロジェクト: AltimorTASDK/shmupmametgm
INLINE ARM_REGS *get_safe_token(running_device *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_ARM);
	return (ARM_REGS *)device->token;
}
コード例 #7
0
ファイル: arm.c プロジェクト: Paulodx/sdl-mame-wii
INLINE ARM_REGS *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_ARM);
	return (ARM_REGS *)device->token;
}
コード例 #8
0
ファイル: i8008.c プロジェクト: AltimorTASDK/shmupmametgm
INLINE i8008_state *get_safe_token(running_device *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_I8008);
	return (i8008_state *)device->token;
}
コード例 #9
0
ファイル: konami.c プロジェクト: nitrologic/emu
INLINE konami_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_KONAMI);
	return (konami_state *)device->token;
}
コード例 #10
0
ファイル: dsp32.c プロジェクト: Paulodx/sdl-mame-wii
INLINE dsp32_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_DSP32C);
	return (dsp32_state *)device->token;
}
コード例 #11
0
ファイル: i4004.c プロジェクト: nitrologic/emu
INLINE i4004_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_I4004);
	return (i4004_state *)device->token;
}
コード例 #12
0
ファイル: m4510.c プロジェクト: nitrologic/emu
INLINE m4510_Regs *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_M4510);
	return (m4510_Regs *)device->token;
}
コード例 #13
0
ファイル: m4510.c プロジェクト: AltimorTASDK/shmupmametgm
INLINE m4510_Regs *get_safe_token(running_device *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_M4510);
	return (m4510_Regs *)device->token;
}
コード例 #14
0
ファイル: tms0980.c プロジェクト: nitrologic/emu
INLINE tms0980_state *get_safe_token(const device_config *device)
{
	assert(device != NULL);
	assert(device->token != NULL);
	assert(device->type == CPU);
	assert(cpu_get_type(device) == CPU_TMS0980 ||
			cpu_get_type(device) == CPU_TMS1000 ||
			cpu_get_type(device) == CPU_TMS1070 ||
			cpu_get_type(device) == CPU_TMS1100 ||
			cpu_get_type(device) == CPU_TMS1200 ||
			cpu_get_type(device) == CPU_TMS1270 ||
			cpu_get_type(device) == CPU_TMS1300 );
	return (tms0980_state *)device->token;
}