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/vector06.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/vector06.c')
| -rw-r--r-- | src/mess/drivers/vector06.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mess/drivers/vector06.c b/src/mess/drivers/vector06.c index fdf41a9104a..642ecb1e2e3 100644 --- a/src/mess/drivers/vector06.c +++ b/src/mess/drivers/vector06.c @@ -185,9 +185,19 @@ static MACHINE_CONFIG_START( vector06, vector06_state ) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) /* Devices */ - MCFG_I8255_ADD("ppi8255", vector06_ppi8255_interface) - MCFG_I8255_ADD("ppi8255_2", vector06_ppi8255_2_interface) + MCFG_DEVICE_ADD("ppi8255", I8255, 0) + MCFG_I8255_OUT_PORTA_CB(WRITE8(vector06_state, vector06_8255_porta_w)) + MCFG_I8255_IN_PORTB_CB(READ8(vector06_state, vector06_8255_portb_r)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(vector06_state, vector06_8255_portb_w)) + MCFG_I8255_IN_PORTC_CB(READ8(vector06_state, vector06_8255_portc_r)) + + MCFG_DEVICE_ADD("ppi8255_2", I8255, 0) + MCFG_I8255_OUT_PORTA_CB(WRITE8(vector06_state, vector06_romdisk_porta_w)) + MCFG_I8255_IN_PORTB_CB(READ8(vector06_state, vector06_romdisk_portb_r)) + MCFG_I8255_OUT_PORTC_CB(WRITE8(vector06_state, vector06_romdisk_portc_w)) + MCFG_CASSETTE_ADD("cassette", vector_cassette_interface) + MCFG_FD1793_ADD("wd1793", vector06_wd17xx_interface) MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(vector_floppy_interface) |
