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