summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2021-10-04 20:01:03 -0500
committer cracyc <cracyc@users.noreply.github.com>2021-10-04 20:01:03 -0500
commitf82fabc15f0d8826f82273e00f143af95c9571f1 (patch)
tree11842c5245c17bdbee14053046d809bfda6055ef
parentc2c3d685f0229e31be4348d18c8b4fd22d890417 (diff)
pc6001: add fdc irq read port
-rw-r--r--src/mame/drivers/pc6001.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/pc6001.cpp b/src/mame/drivers/pc6001.cpp
index b257c17ea54..c0b1e4307ce 100644
--- a/src/mame/drivers/pc6001.cpp
+++ b/src/mame/drivers/pc6001.cpp
@@ -802,7 +802,8 @@ void pc6601_state::fdc_mon_w(u8 data)
void pc6601_state::pc6601_fdc_io(address_map &map)
{
map(0xb1, 0xb1).mirror(0x4).w(FUNC(pc6601_state::fdc_sel_w));
-// 0xb0, 0xb3
+ map(0xb2, 0xb2).lr8([this]() { return m_fdc->get_irq() ? 1 : 0; }, "FDCINT");
+ //map(0xb3, 0xb3).w b3 is written when b2 is read
map(0xd0, 0xdf).view(m_fdc_intf_view);
m_fdc_intf_view[0](0xd4, 0xd4).r(FUNC(pc6601_state::fdc_mon_r));
m_fdc_intf_view[0](0xd6, 0xd6).w(FUNC(pc6601_state::fdc_mon_w));