summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/pc6001.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/pc6001.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/pc6001.c')
-rw-r--r--src/mess/drivers/pc6001.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/mess/drivers/pc6001.c b/src/mess/drivers/pc6001.c
index 6537f161e8b..21549a89541 100644
--- a/src/mess/drivers/pc6001.c
+++ b/src/mess/drivers/pc6001.c
@@ -1910,16 +1910,6 @@ READ8_MEMBER(pc6001_state::pc6001_8255_portc_r)
-static I8255_INTERFACE( pc6001_ppi8255_interface )
-{
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_porta_r),
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_porta_w),
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_portb_r),
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_portb_w),
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_portc_r),
- DEVCB_DRIVER_MEMBER(pc6001_state,pc6001_8255_portc_w)
-};
-
static const ay8910_interface pc6001_ay_interface =
{
AY8910_LEGACY_OUTPUT,
@@ -2332,7 +2322,14 @@ static MACHINE_CONFIG_START( pc6001, pc6001_state )
MCFG_PALETTE_ADD("palette", 16+4)
MCFG_PALETTE_INIT_OWNER(pc6001_state, pc6001)
- MCFG_I8255_ADD( "ppi8255", pc6001_ppi8255_interface )
+ MCFG_DEVICE_ADD("ppi8255", I8255, 0)
+ MCFG_I8255_IN_PORTA_CB(READ8(pc6001_state, pc6001_8255_porta_r))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(pc6001_state, pc6001_8255_porta_w))
+ MCFG_I8255_IN_PORTB_CB(READ8(pc6001_state, pc6001_8255_portb_r))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(pc6001_state, pc6001_8255_portb_w))
+ MCFG_I8255_IN_PORTC_CB(READ8(pc6001_state, pc6001_8255_portc_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(pc6001_state, pc6001_8255_portc_w))
+
/* uart */
MCFG_DEVICE_ADD("uart", I8251, 0)