void kc_d004_device::io_read(offs_t offset, UINT8 &data) { if ((offset & 0xff) == 0x80) { UINT8 slot_id = (offset>>8) & 0xff; if (slot_id == 0xfc) data = module_id_r(); }
void kc_d002_device::io_read(offs_t offset, uint8_t &data) { if ((offset & 0xff) == 0x80) { uint8_t slot_id = (offset>>8) & 0xff; if ((slot_id & 0xf0) == ioport("ID")->read() && !(slot_id & 0x03)) data = m_expansions[(slot_id>>2) & 3]->module_id_r(); else