summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Derrick Renaud <derrickr@mamedev.org>2008-08-12 03:51:29 +0000
committer Derrick Renaud <derrickr@mamedev.org>2008-08-12 03:51:29 +0000
commit0ec9cda36e5544ca9b405b8dede24f82b35ea2e4 (patch)
tree646ed6fb1f7f34dc76abac9a6db545af5213f34c
parentd5d5d9449bf6bed24f4bd6df287029f2aaf89342 (diff)
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
-rw-r--r--src/mame/drivers/madalien.c8
-rw-r--r--src/mame/includes/madalien.h2
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 -----------*/