From 0ec9cda36e5544ca9b405b8dede24f82b35ea2e4 Mon Sep 17 00:00:00 2001 From: Derrick Renaud Date: Tue, 12 Aug 2008 03:51:29 +0000 Subject: [PATCH] Fixed NMI on Mad Alien sound CPU. This fixes shot sound and various other sound glitches. Marked madalien and madalina as Imperfect Graphics. They are missing an effect. When you shoot an enemy in the dark, the whole screen lights up. Basically the headlights fill the whole screen. credit Guru, Derrick Renaud --- src/mame/drivers/madalien.c | 8 ++++---- src/mame/includes/madalien.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/madalien.c b/src/mame/drivers/madalien.c index 11bd60f6452..02de92c214b 100644 --- a/src/mame/drivers/madalien.c +++ b/src/mame/drivers/madalien.c @@ -12,7 +12,7 @@ #include "madalien.h" -#define SOUND_CLOCK 4000000 +#define SOUND_CLOCK XTAL_4MHz static UINT8 *shift_hi; @@ -180,7 +180,7 @@ static MACHINE_DRIVER_START( madalien ) MDRV_CPU_ADD("audio", M6502, SOUND_CLOCK / 8) /* 512kHz */ MDRV_CPU_PROGRAM_MAP(audio_map, 0) - MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 800) /* unknown due to incomplete schematics */ + MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) /* video hardware */ MDRV_IMPORT_FROM(madalien_video) @@ -272,5 +272,5 @@ ROM_END /* set parent machine inp init */ -GAME( 1980, madalien, 0, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien", GAME_SUPPORTS_SAVE ) -GAME( 1980, madalina, madalien, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien (Highway Chase)", GAME_SUPPORTS_SAVE ) +GAME( 1980, madalien, 0, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) +GAME( 1980, madalina, madalien, madalien, madalien, 0, ROT270, "Data East Corporation", "Mad Alien (Highway Chase)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) diff --git a/src/mame/includes/madalien.h b/src/mame/includes/madalien.h index b8565823ff4..d10c7d67d0a 100644 --- a/src/mame/includes/madalien.h +++ b/src/mame/includes/madalien.h @@ -9,7 +9,7 @@ #include "sound/discrete.h" -#define MADALIEN_MAIN_CLOCK (10595000) +#define MADALIEN_MAIN_CLOCK XTAL_10_595MHz /*----------- defined in video/madalien.c -----------*/