summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-09-04 15:12:20 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-09-04 15:12:20 -0400
commitf9b8f6e9bd3466fde11092276c823ca7876b3d8d (patch)
treeebffd15f2a2d872b7c6cfefb301b551192978c9f
parent545fa2867ef26a78c5d2ab71335b047c0b153d79 (diff)
ice_tbd: Add a PPI to this skeleton (nw)
-rw-r--r--src/mame/drivers/ice_tbd.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mame/drivers/ice_tbd.cpp b/src/mame/drivers/ice_tbd.cpp
index a5f94d8c060..011910db128 100644
--- a/src/mame/drivers/ice_tbd.cpp
+++ b/src/mame/drivers/ice_tbd.cpp
@@ -19,6 +19,7 @@ not sure what the actual inputs / outputs would be on this, maybe just track pos
#include "emu.h"
#include "cpu/z80/z80.h"
+#include "machine/i8255.h"
class ice_tbd_state : public driver_device
{
@@ -41,6 +42,11 @@ static ADDRESS_MAP_START( ice_tbd_map, AS_PROGRAM, 8, ice_tbd_state )
AM_RANGE(0x4000, 0x47ff) AM_RAM
ADDRESS_MAP_END
+static ADDRESS_MAP_START( ice_tbd_io_map, AS_IO, 8, ice_tbd_state )
+ ADDRESS_MAP_GLOBAL_MASK(0xff)
+ AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi", i8255_device, read, write)
+ADDRESS_MAP_END
+
static INPUT_PORTS_START( ice_tbd )
INPUT_PORTS_END
@@ -58,7 +64,12 @@ static MACHINE_CONFIG_START( ice_tbd )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", Z80,8000000) /* ? MHz */
MCFG_CPU_PROGRAM_MAP(ice_tbd_map)
+ MCFG_CPU_IO_MAP(ice_tbd_io_map)
+ MCFG_DEVICE_ADD("ppi", I8255, 0)
+ MCFG_I8255_OUT_PORTA_CB(NOOP) // ?
+ MCFG_I8255_OUT_PORTB_CB(NOOP) // ?
+ MCFG_I8255_IN_PORTC_CB(NOOP) // ?
MACHINE_CONFIG_END