summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astrocde.c
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-04-28 18:41:16 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-04-28 18:41:16 +0000
commit25b6f6a58d889f49ee46e60415af95b91bfb47e4 (patch)
tree8cf9661d917d6f8f314a3e1ebdc1233d9bdc1899 /src/mame/drivers/astrocde.c
parent8cb2897cc1ae6341b4bf30914042d847c4d21f84 (diff)
z80ctc: converted to use devcb2. nw.
Notes: - for whatever reason the tlcs_z80 internal CTC fails to recognize/find its owner tag, does anyone know how to fix this? it's probably trivial, but I need an helping hand or pve500 cannot be launched anymore... - @Haze: can you check your inder_sb.c code? your CTC interface was wrong, judging from the comments in the source (the first cb was for the interrupt, and no callback was present by default for the ZC/TO3...) and I'm not sure what the code is intended to actually do
Diffstat (limited to 'src/mame/drivers/astrocde.c')
-rw-r--r--src/mame/drivers/astrocde.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mame/drivers/astrocde.c b/src/mame/drivers/astrocde.c
index 8aebd195dc8..9b234c83755 100644
--- a/src/mame/drivers/astrocde.c
+++ b/src/mame/drivers/astrocde.c
@@ -474,15 +474,6 @@ WRITE8_MEMBER(astrocde_state::demndrgn_sound_w)
*
*************************************/
-static Z80CTC_INTERFACE( ctc_intf )
-{
- DEVCB_CPU_INPUT_LINE("sub", INPUT_LINE_IRQ0), /* interrupt handler */
- DEVCB_NULL, /* ZC/TO0 callback */
- DEVCB_NULL, /* ZC/TO1 callback */
- DEVCB_NULL /* ZC/TO2 callback */
-};
-
-
static const ay8910_interface ay8912_interface =
{
AY8910_LEGACY_OUTPUT,
@@ -1481,7 +1472,8 @@ static MACHINE_CONFIG_DERIVED( tenpindx, astrocade_16color_base )
MCFG_CPU_PROGRAM_MAP(tenpin_sub_map)
MCFG_CPU_IO_MAP(tenpin_sub_io_map)
- MCFG_Z80CTC_ADD("ctc", ASTROCADE_CLOCK/4 /* same as "sub" */, ctc_intf)
+ MCFG_DEVICE_ADD("ctc", Z80CTC, ASTROCADE_CLOCK/4 /* same as "sub" */)
+ MCFG_Z80CTC_INTR_CB(INPUTLINE("sub", INPUT_LINE_IRQ0))
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")