INPUT_PORTS_END void sitcom_state::machine_reset() { dl1416_ce_w(m_ds0, 0); // enable dl1416_wr_w(m_ds0, 0); dl1416_cu_w(m_ds0, 1); // no cursor dl1416_ce_w(m_ds1, 0); dl1416_wr_w(m_ds1, 0); dl1416_cu_w(m_ds1, 1); }
static void dl1416_update(device_t *device, int index) { aim65_state *state = device->machine().driver_data<aim65_state>(); dl1416_ce_w(device, state->m_pia_a & (0x04 << index)); dl1416_wr_w(device, BIT(state->m_pia_a, 7)); dl1416_cu_w(device, BIT(state->m_pia_b, 7)); dl1416_data_w(device, state->generic_space(), state->m_pia_a & 0x03, state->m_pia_b & 0x7f); }