void amis2152_cpu_device::device_reset() { amis2000_base_device::device_reset(); // start d2f timer m_write_f(0); d2f_timer_clock(); }
void ucom4_cpu_device::output_w(int index, UINT8 data) { index &= 0xf; data &= 0xf; switch (index) { case NEC_UCOM4_PORTC: m_write_c(index, data, 0xff); break; case NEC_UCOM4_PORTD: m_write_d(index, data, 0xff); break; case NEC_UCOM4_PORTE: m_write_e(index, data, 0xff); break; case NEC_UCOM4_PORTF: m_write_f(index, data, 0xff); break; case NEC_UCOM4_PORTG: m_write_g(index, data, 0xff); break; case NEC_UCOM4_PORTH: m_write_h(index, data, 0xff); break; case NEC_UCOM4_PORTI: m_write_i(index, data & 7, 0xff); break; default: logerror("%s write to unknown port %c = $%X at $%03X\n", tag(), 'A' + index, data & 0xf, m_prev_pc); break; } m_port_out[index] = data; }
void melps4_cpu_device::write_gen_port(int port, UINT8 data) { // output generic port switch (port) { case MELPS4_PORTS: m_port_s = data; m_write_s(port, data, 0xff); break; case MELPS4_PORTF: m_port_f = data & 0xf; m_write_f(port, data & 0xf, 0xff); break; case MELPS4_PORTG: m_write_g(port, data & 0xf, 0xff); break; case MELPS4_PORTU: m_write_u(port, data & 1, 0xff); break; default: break; } }