summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-11-03 12:48:21 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-11-03 12:48:58 -0400
commit0f40d679e1f874d226301528d7012dbf514a2a4a (patch)
tree5ab68f3b4efe51a8a25a2c2e008cc3e6e77f44a5
parent3e6b53b2f6ff1d5c6c4ed06fc7a4261b7568a57e (diff)
tti: Add vectored interrupt that does nothing now (nw)
-rw-r--r--src/mame/drivers/tti.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mame/drivers/tti.cpp b/src/mame/drivers/tti.cpp
index 7b60e897f57..ea03bba1ac9 100644
--- a/src/mame/drivers/tti.cpp
+++ b/src/mame/drivers/tti.cpp
@@ -24,12 +24,21 @@ public:
tti_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
+ , m_mfp(*this, "mfp")
{ }
+ IRQ_CALLBACK_MEMBER(intack);
+
protected:
required_device<cpu_device> m_maincpu;
+ required_device<mc68901_device> m_mfp;
};
+IRQ_CALLBACK_MEMBER(tti_state::intack)
+{
+ return m_mfp->get_vector();
+}
+
static INPUT_PORTS_START( tti )
INPUT_PORTS_END
@@ -42,12 +51,14 @@ ADDRESS_MAP_END
static MACHINE_CONFIG_START( tti )
MCFG_DEVICE_ADD("maincpu", M68008, XTAL_20MHz / 2) // guess
MCFG_CPU_PROGRAM_MAP(prg_map)
+ MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(tti_state, intack)
MCFG_DEVICE_ADD("mfp", MC68901, 0)
MCFG_MC68901_TIMER_CLOCK(XTAL_20MHz / 2) // guess
MCFG_MC68901_RX_CLOCK(9600) // for testing (FIXME: actually 16x)
MCFG_MC68901_TX_CLOCK(9600) // for testing (FIXME: actually 16x)
MCFG_MC68901_OUT_SO_CB(DEVWRITELINE("rs232", rs232_port_device, write_txd))
+ MCFG_MC68901_OUT_IRQ_CB(INPUTLINE("maincpu", M68K_IRQ_5))
MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("mfp", mc68901_device, write_rx))