Skip to content

Commit 0823404

Browse files
authored
heathzenith/h89.cpp: Update gpp handling for MMS FDC (#13226)
1 parent f5622e6 commit 0823404

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

src/devices/bus/heathzenith/h89/h89bus.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void h89bus_device::io_dispatch_w(offs_t offset, u8 data)
280280

281281
if (decode)
282282
{
283-
if (decode & H89_GPP) m_out_gpp_cb(offset, data);
283+
if ((decode & H89_GPP) && ((offset & 7) == 2)) m_out_gpp_cb(offset, data);
284284
if (decode & H89_NMI) { m_out_nmi_cb(offset, data); return; }
285285
if (decode & H89_TERM) { m_out_tlb_cb(offset & 7, data); return; }
286286

src/mame/heathzenith/h89.cpp

-31
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ class h89_mms_state : public h89_base_state
247247

248248
void h89_mms(machine_config &config);
249249

250-
protected:
251-
u8 port_f2_mms_r(offs_t offset);
252-
void port_f2_mms_w(offs_t offset, u8 data);
253250
};
254251

255252

@@ -885,31 +882,6 @@ void h89_base_state::port_f2_w(offs_t offset, u8 data)
885882
m_intr_socket->set_irq_level(1, CLEAR_LINE);
886883
}
887884

888-
// MMS intercepts the GPIO decoding so the GPIO pin on
889-
// the right slots can be used as a card select without
890-
// interfering with normal GPIO port operation.
891-
u8 h89_mms_state::port_f2_mms_r(offs_t offset)
892-
{
893-
if ((offset & 7) != 2)
894-
{
895-
return 0;
896-
}
897-
898-
return m_sw501->read();
899-
}
900-
901-
void h89_mms_state::port_f2_mms_w(offs_t offset, u8 data)
902-
{
903-
if ((offset & 7) != 2)
904-
{
905-
return;
906-
}
907-
908-
update_gpp(data);
909-
910-
m_intr_socket->set_irq_level(1, CLEAR_LINE);
911-
}
912-
913885
static void tlb_options(device_slot_interface &device)
914886
{
915887
device.option_add("heath", HEATH_TLB);
@@ -1071,9 +1043,6 @@ void h89_mms_state::h89_mms(machine_config &config)
10711043
h89_base(config);
10721044
m_h89bus->set_default_bios_tag("444-61c");
10731045

1074-
m_h89bus->in_gpp_callback().set(FUNC(h89_mms_state::port_f2_mms_r));
1075-
m_h89bus->out_gpp_callback().set(FUNC(h89_mms_state::port_f2_mms_w));
1076-
10771046
// the card selection is different with the MMS mapping PROM
10781047
H89BUS_RIGHT_SLOT(config.replace(), "p504", "h89bus", [this](device_slot_interface &device) { h89_right_cards_mms(device); }, "mms77316");
10791048
H89BUS_RIGHT_SLOT(config.replace(), "p505", "h89bus", [this](device_slot_interface &device) { h89_right_cards_mms(device); }, "ha_88_3");

0 commit comments

Comments
 (0)