summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-06-04 21:05:40 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-06-04 21:06:24 -0400
commit8c237a7dcabf44fe56530d6cd7334792436bb1c4 (patch)
tree1b3a046526d9753da819a5bce419c932dfa6f0f0 /src/devices/machine
parentd285f15c31bc963a61531f667020a69baf383f74 (diff)
pcnoppi_mb: Enable accesses to keyboard-related registers
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/genpc.cpp12
-rw-r--r--src/devices/machine/genpc.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/src/devices/machine/genpc.cpp b/src/devices/machine/genpc.cpp
index 4300429505e..5c5d19cdbb3 100644
--- a/src/devices/machine/genpc.cpp
+++ b/src/devices/machine/genpc.cpp
@@ -1059,11 +1059,23 @@ ioport_constructor pc_noppi_mb_device::device_input_ports() const
return INPUT_PORTS_NAME( pc_noppi_mb );
}
+uint8_t pc_noppi_mb_device::pc_ppi_porta_r()
+{
+ return m_ppi_shift_register;
+}
+
+uint8_t pc_noppi_mb_device::pc_ppi_portb_r()
+{
+ return m_ppi_portb;
+}
+
void pc_noppi_mb_device::map(address_map &map)
{
map(0x0000, 0x000f).rw("dma8237", FUNC(am9517a_device::read), FUNC(am9517a_device::write));
map(0x0020, 0x002f).rw("pic8259", FUNC(pic8259_device::read), FUNC(pic8259_device::write));
map(0x0040, 0x004f).rw("pit8253", FUNC(pit8253_device::read), FUNC(pit8253_device::write));
+ map(0x0060, 0x0060).r(FUNC(pc_noppi_mb_device::pc_ppi_porta_r));
+ map(0x0061, 0x0061).rw(FUNC(pc_noppi_mb_device::pc_ppi_portb_r), FUNC(pc_noppi_mb_device::pc_ppi_portb_w));
map(0x0080, 0x008f).w(FUNC(pc_noppi_mb_device::pc_page_w));
map(0x00a0, 0x00a1).w(FUNC(pc_noppi_mb_device::nmi_enable_w));
}
diff --git a/src/devices/machine/genpc.h b/src/devices/machine/genpc.h
index 84c49159fcc..8462f1fde88 100644
--- a/src/devices/machine/genpc.h
+++ b/src/devices/machine/genpc.h
@@ -228,6 +228,10 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual ioport_constructor device_input_ports() const override;
+
+private:
+ uint8_t pc_ppi_porta_r();
+ uint8_t pc_ppi_portb_r();
};
DECLARE_DEVICE_TYPE(PCNOPPI_MOTHERBOARD, pc_noppi_mb_device)