summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tp84.c
diff options
context:
space:
mode:
author Zsolt Vasvari <zsoltvas@mamedev.org>2008-02-29 15:09:04 +0000
committer Zsolt Vasvari <zsoltvas@mamedev.org>2008-02-29 15:09:04 +0000
commitf126c9fc265d76dd145ce23051c4b10c3277779c (patch)
treed61d66f29018b15c5287087f692c84ae3bd5f076 /src/mame/drivers/tp84.c
parent51a3a9eb016a91a3de8e8b4ed3e1ac57a1479bc2 (diff)
Most of this descriptions taken directly from an e-mail by Aaron:
- Define a new MDRV_CPU_VBLANK_INT_HACK() (ZV: defined in deprecat.h) which is a copy of the current MDRV_CPU_VBLANK_INT() - Find all the places where VBLANK_INT is used with something other than 1 interrupt per frame and change it to the new macro - Remove the "# per frame" parameter from the MDRV_SCREEN_VBLANK_INT() and add a screen tag in its place; updated all callers appropriately. - ZV: Added some validation of the interrupt setup to validate.c The idea behind this is that using a VBLANK interrupt with more than one interrupt per frame in conceptually wrong. The screen tag will allow us to move the interrupt timing code from cpuexec.c to video.c, where it really belongs.
Diffstat (limited to 'src/mame/drivers/tp84.c')
-rw-r--r--src/mame/drivers/tp84.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/tp84.c b/src/mame/drivers/tp84.c
index a736e7c7e46..3a1f77fd780 100644
--- a/src/mame/drivers/tp84.c
+++ b/src/mame/drivers/tp84.c
@@ -461,11 +461,11 @@ static MACHINE_DRIVER_START( tp84 )
/* basic machine hardware */
MDRV_CPU_ADD_TAG("cpu1",M6809, XTAL_18_432MHz/12) /* verified on pcb */
MDRV_CPU_PROGRAM_MAP(readmem,writemem)
- MDRV_CPU_VBLANK_INT(irq0_line_hold,1)
+ MDRV_CPU_VBLANK_INT("main", irq0_line_hold)
MDRV_CPU_ADD(M6809, XTAL_18_432MHz/12) /* verified on pcb */
MDRV_CPU_PROGRAM_MAP(readmem_cpu2,writemem_cpu2)
- MDRV_CPU_VBLANK_INT(tp84_6809_interrupt,256)
+ MDRV_CPU_VBLANK_INT_HACK(tp84_6809_interrupt,256)
MDRV_CPU_ADD(Z80,XTAL_14_31818MHz/4) /* verified on pcb */
/* audio CPU */