示例#1
0
文件: neogeo.c 项目: nitrologic/emu
static CUSTOM_INPUT( get_calendar_status )
{
	const device_config *upd4990a = devtag_get_device(field->port->machine, "upd4990a");
	return (upd4990a_databit_r(upd4990a, 0) << 1) | upd4990a_testbit_r(upd4990a, 0);
}
示例#2
0
static CUSTOM_INPUT( get_calendar_status )
{
	neogeo_state *state = field.machine().driver_data<neogeo_state>();
	return (upd4990a_databit_r(state->m_upd4990a, 0) << 1) | upd4990a_testbit_r(state->m_upd4990a, 0);
}
示例#3
0
static CUSTOM_INPUT( get_calendar_status )
{
	neogeo_state *state = (neogeo_state *)field->port->machine->driver_data;
	return (upd4990a_databit_r(state->upd4990a, 0) << 1) | upd4990a_testbit_r(state->upd4990a, 0);
}