From f464e2bbb3f693fa2f1aef895187d388c33035fd Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 1 Jul 2020 23:01:47 +1000 Subject: bus/mackbd: Silence debug logging when M0110A keyboard ensures bus pins aren't pulled down --- src/devices/bus/mackbd/pluskbd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/devices/bus/mackbd/pluskbd.cpp b/src/devices/bus/mackbd/pluskbd.cpp index 41da3f01f43..bbdd1c5d6d8 100644 --- a/src/devices/bus/mackbd/pluskbd.cpp +++ b/src/devices/bus/mackbd/pluskbd.cpp @@ -129,6 +129,7 @@ protected: virtual void device_add_mconfig(machine_config &config) override { I8048(config, m_mpu, 6_MHz_XTAL); // NEC 8048HC517 341-0332-A with ceramic resonator + m_mpu->set_addrmap(AS_IO, &m0110a_device::mpu_io); m_mpu->p1_out_cb().set(FUNC(m0110a_device::p1_w)); m_mpu->p2_in_cb().set_ioport("P2"); m_mpu->p2_out_cb().set(FUNC(m0110a_device::p2_w)); @@ -191,6 +192,12 @@ private: return result; } + void mpu_io(address_map &map) + { + // MPU writes 0xff to these addresses before reading columns to ensure the bus pins aren't pulled down + map(0x2a, 0x33).nopw(); + } + TIMER_CALLBACK_MEMBER(update_host_data) { if (bool(param) != bool(m_host_data_in)) -- cgit v1.2.3