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/drivers/ibmpcjr.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/drivers/ibmpcjr.c')
-rw-r--r-- | src/mess/drivers/ibmpcjr.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mess/drivers/ibmpcjr.c b/src/mess/drivers/ibmpcjr.c index 0ebf6bad196..0a2d143562c 100644 --- a/src/mess/drivers/ibmpcjr.c +++ b/src/mess/drivers/ibmpcjr.c @@ -357,16 +357,6 @@ READ8_MEMBER(pcjr_state::pcjr_ppi_portc_r) return data; } -I8255_INTERFACE( pcjr_ppi8255_interface ) -{ - DEVCB_CONSTANT(0xff), - DEVCB_NULL, - DEVCB_NULL, - DEVCB_DRIVER_MEMBER(pcjr_state,pcjr_ppi_portb_w), - DEVCB_DRIVER_MEMBER(pcjr_state,pcjr_ppi_portc_r), - DEVCB_NULL -}; - WRITE8_MEMBER(pcjr_state::pcjr_fdc_dor_w) { logerror("fdc: dor = %02x\n", data); @@ -637,7 +627,10 @@ static MACHINE_CONFIG_START( ibmpcjr, pcjr_state) MCFG_PIC8259_ADD( "pic8259", WRITELINE(pcjr_state, pic8259_set_int_line), VCC, NULL ) - MCFG_I8255_ADD( "ppi8255", pcjr_ppi8255_interface ) + MCFG_DEVICE_ADD("ppi8255", I8255, 0) + MCFG_I8255_IN_PORTA_CB(CONSTANT(0xff)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(pcjr_state, pcjr_ppi_portb_w)) + MCFG_I8255_IN_PORTC_CB(READ8(pcjr_state, pcjr_ppi_portc_r)) MCFG_INS8250_ADD( "ins8250", pcjr_com_interface, XTAL_1_8432MHz ) |