diff options
author | 2014-04-17 05:49:48 +0000 | |
---|---|---|
committer | 2014-04-17 05:49:48 +0000 | |
commit | a2bdecb0716607331febcb702563e78c40ba2f62 (patch) | |
tree | 82d192231d376fcb7f88512bb7c30629f775d2d8 /src/mess/machine/genpc.c | |
parent | 7030ff593e2dc3d071b0f1df7d3d9085516cf414 (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/machine/genpc.c')
-rw-r--r-- | src/mess/machine/genpc.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mess/machine/genpc.c b/src/mess/machine/genpc.c index 77a9ddfac09..a050479450b 100644 --- a/src/mess/machine/genpc.c +++ b/src/mess/machine/genpc.c @@ -402,16 +402,6 @@ WRITE8_MEMBER( ibm5160_mb_device::pc_ppi_portb_w ) } -I8255A_INTERFACE( pc_ppi8255_interface ) -{ - DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, ibm5160_mb_device, pc_ppi_porta_r), - DEVCB_NULL, - DEVCB_NULL, - DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, ibm5160_mb_device, pc_ppi_portb_w), - DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, ibm5160_mb_device, pc_ppi_portc_r), - DEVCB_NULL -}; - /********************************************************** * * NMI handling @@ -446,7 +436,10 @@ static MACHINE_CONFIG_FRAGMENT( ibm5160_mb_config ) MCFG_PIC8259_ADD( "pic8259", INPUTLINE(":maincpu", 0), VCC, NULL ) - MCFG_I8255A_ADD( "ppi8255", pc_ppi8255_interface ) + MCFG_DEVICE_ADD("ppi8255", I8255A, 0) + MCFG_I8255_IN_PORTA_CB(READ8(ibm5160_mb_device, pc_ppi_porta_r)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(ibm5160_mb_device, pc_ppi_portb_w)) + MCFG_I8255_IN_PORTC_CB(READ8(ibm5160_mb_device, pc_ppi_portc_r)) MCFG_DEVICE_ADD("isa", ISA8, 0) MCFG_ISA8_CPU(":maincpu") |