summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/tandy2k.c
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-04-17 05:49:48 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-04-17 05:49:48 +0000
commita2bdecb0716607331febcb702563e78c40ba2f62 (patch)
tree82d192231d376fcb7f88512bb7c30629f775d2d8 /src/mess/drivers/tandy2k.c
parent7030ff593e2dc3d071b0f1df7d3d9085516cf414 (diff)
converted i8255 to devcb2. nw.
p.s. I tested several games/systems and I triple checked the diff to be sure I did not make any copy and paste mistake in the 195 files touched by this, but let me know if any system suddenly stops working!
Diffstat (limited to 'src/mess/drivers/tandy2k.c')
-rw-r--r--src/mess/drivers/tandy2k.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mess/drivers/tandy2k.c b/src/mess/drivers/tandy2k.c
index 84ad7b5c5ec..67a13f06074 100644
--- a/src/mess/drivers/tandy2k.c
+++ b/src/mess/drivers/tandy2k.c
@@ -636,15 +636,6 @@ WRITE8_MEMBER( tandy2k_state::ppi_pc_w )
m_centronics->write_strobe(BIT(data, 7));
}
-static I8255A_INTERFACE( ppi_intf )
-{
- DEVCB_NULL, // Port A read
- DEVCB_DEVICE_MEMBER("cent_data_out", output_latch_device, write), // Port A write
- DEVCB_DRIVER_MEMBER(tandy2k_state, ppi_pb_r), // Port B write
- DEVCB_NULL, // Port B write
- DEVCB_NULL, // Port C read
- DEVCB_DRIVER_MEMBER(tandy2k_state, ppi_pc_w) // Port C write
-};
// Intel 8259 Interfaces
@@ -805,7 +796,10 @@ static MACHINE_CONFIG_START( tandy2k, tandy2k_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
// devices
- MCFG_I8255A_ADD(I8255A_TAG, ppi_intf)
+ MCFG_DEVICE_ADD(I8255A_TAG, I8255A, 0)
+ MCFG_I8255_OUT_PORTA_CB(DEVWRITE8("cent_data_out", output_latch_device, write))
+ MCFG_I8255_IN_PORTB_CB(READ8(tandy2k_state, ppi_pb_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(tandy2k_state, ppi_pc_w))
MCFG_DEVICE_ADD(I8251A_TAG, I8251, 0)
MCFG_I8251_TXD_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_txd))