diff options
author | Angelo Salese <lordkale4@gmail.com> | 2019-06-02 04:36:20 +0200 |
---|---|---|
committer | Angelo Salese <lordkale4@gmail.com> | 2019-06-02 04:36:20 +0200 |
commit | ec753a153a91622b56e49e7583cfa7ac98d11fd5 (patch) | |
tree | 84d73d36a29e3d3f6c816e32087edd0c63fe8294 /src/mame/drivers/pastelg.cpp | |
parent | 88f398686c0c9a40aa101e798dfadda20422e930 (diff) |
nb1413m3.cpp: kill nb1413m3 busy flag publicness, kill busyflag hack in threeds (nw)
Diffstat (limited to 'src/mame/drivers/pastelg.cpp')
-rw-r--r-- | src/mame/drivers/pastelg.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/mame/drivers/pastelg.cpp b/src/mame/drivers/pastelg.cpp index 5a253adb99d..63d678bd9f4 100644 --- a/src/mame/drivers/pastelg.cpp +++ b/src/mame/drivers/pastelg.cpp @@ -108,11 +108,6 @@ WRITE8_MEMBER(pastelg_state::threeds_inputportsel_w) m_mux_data = ~data; } -CUSTOM_INPUT_MEMBER( pastelg_state::nb1413m3_busyflag_r ) -{ - return m_nb1413m3->m_busyflag & 0x01; -} - void pastelg_state::threeds_io_map(address_map &map) { map.global_mask(0xff); @@ -202,7 +197,7 @@ static INPUT_PORTS_START( pastelg ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_START("SYSTEM") - PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, pastelg_state, nb1413m3_busyflag_r, nullptr) // DRAW BUSY + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("nb1413m3", nb1413m3_device, busyflag_r) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MEMORY_RESET ) // MEMORY RESET PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER @@ -214,12 +209,6 @@ static INPUT_PORTS_START( pastelg ) PORT_INCLUDE( nbmjcontrols ) INPUT_PORTS_END -// stops the game hanging.. -CUSTOM_INPUT_MEMBER(pastelg_state::nb1413m3_hackbusyflag_r) -{ - return machine().rand() & 3; -} - static INPUT_PORTS_START( threeds ) PORT_START("DSWA") PORT_DIPNAME( 0x01, 0x01, "0" ) @@ -372,7 +361,8 @@ static INPUT_PORTS_START( threeds ) PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_START("SYSTEM") - PORT_BIT( 0x03, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, pastelg_state,nb1413m3_hackbusyflag_r, nullptr) // DRAW BUSY + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_READ_LINE_DEVICE_MEMBER("nb1413m3", nb1413m3_device, busyflag_r) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) // PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MEMORY_RESET ) // MEMORY RESET PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) // ANALYZER PORT_SERVICE( 0x10, IP_ACTIVE_LOW ) // TEST |