summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bionicc.c
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-04-28 01:54:18 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-04-28 01:54:18 +0000
commit1ce1e3c39ca980e055a4da682a60815319ce3b0c (patch)
treeba5ca2ade8765409c3a6de8042a6256251e47684 /src/mame/drivers/bionicc.c
parenta8d41ae3490d90f3714d615d17d07b3725cac458 (diff)
Today work for deprecate the deprecat.h
Diffstat (limited to 'src/mame/drivers/bionicc.c')
-rw-r--r--src/mame/drivers/bionicc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/bionicc.c b/src/mame/drivers/bionicc.c
index 34bfcd42cb0..bd6addc94af 100644
--- a/src/mame/drivers/bionicc.c
+++ b/src/mame/drivers/bionicc.c
@@ -57,7 +57,6 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "cpu/m68000/m68000.h"
-#include "deprecat.h"
#include "sound/2151intf.h"
#include "includes/bionicc.h"
@@ -127,19 +126,20 @@ static READ16_HANDLER( hacked_soundcommand_r )
IRQ 2 drives the game
IRQ 4 processes the input ports
- The game is very picky about timing. The following is the only
- way I have found it to work.
-
********************************************************************/
-static INTERRUPT_GEN( bionicc_interrupt )
+static TIMER_DEVICE_CALLBACK( bionicc_scanline )
{
- if (cpu_getiloops(device) == 0)
- device_set_input_line(device, 2, HOLD_LINE);
- else
- device_set_input_line(device, 4, HOLD_LINE);
+ int scanline = param;
+
+ if(scanline == 240) // vblank-out irq
+ cputag_set_input_line(timer.machine(), "maincpu", 2, HOLD_LINE);
+
+ if(scanline == 0) // vblank-in or i8751 related irq
+ cputag_set_input_line(timer.machine(), "maincpu", 4, HOLD_LINE);
}
+
/*************************************
*
* Address maps
@@ -361,7 +361,7 @@ static MACHINE_CONFIG_START( bionicc, bionicc_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M68000, MASTER_CLOCK / 2) /* 12 MHz - verified in schematics */
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_VBLANK_INT_HACK(bionicc_interrupt,8)
+ MCFG_TIMER_ADD_SCANLINE("scantimer", bionicc_scanline, "screen", 0, 1)
MCFG_CPU_ADD("audiocpu", Z80, EXO3_F0_CLK / 4) /* EXO3 C,B=GND, A=5V ==> Divisor 2^2 */
MCFG_CPU_PROGRAM_MAP(sound_map)