summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/itgamble.c
diff options
context:
space:
mode:
author Roberto Fresca <robertof@mamedev.org>2008-06-08 05:39:10 +0000
committer Roberto Fresca <robertof@mamedev.org>2008-06-08 05:39:10 +0000
commit12ee1077955edafd5e21053bbe1e4e154a66e464 (patch)
treeffa7236304435ed2102f3f81d51fff96002ee858 /src/mame/drivers/itgamble.c
parent9ecc076521d5039ebf7e5465461854e4cb7d9374 (diff)
Italian gambling games based on H8/3048 + OKI 6295:
Added two alternative Xtals and a new machine driver to support the Mystery Number hardware. New games marked as GAME_NOT_WORKING ------------------------------------ Mystery Number [Roberto Fresca]
Diffstat (limited to 'src/mame/drivers/itgamble.c')
-rw-r--r--src/mame/drivers/itgamble.c62
1 files changed, 60 insertions, 2 deletions
diff --git a/src/mame/drivers/itgamble.c b/src/mame/drivers/itgamble.c
index 6b0672ee13d..06d80325a28 100644
--- a/src/mame/drivers/itgamble.c
+++ b/src/mame/drivers/itgamble.c
@@ -48,6 +48,9 @@
#define MAIN_CLOCK XTAL_30MHz
#define SND_CLOCK XTAL_1MHz
+#define ALT1_CLOCK_A XTAL_24MHz
+#define ALT1_CLOCK_B XTAL_16MHz
+
#include "driver.h"
#include "cpu/h83002/h83002.h"
#include "sound/okim6295.h"
@@ -196,9 +199,21 @@ static MACHINE_DRIVER_START( itgamble )
/* sound hardware */
MDRV_SPEAKER_STANDARD_MONO("mono")
- MDRV_SOUND_ADD(OKIM6295, SND_CLOCK) /* 1MHz resonator */
+ MDRV_SOUND_ADD_TAG("oki", OKIM6295, SND_CLOCK) /* 1MHz resonator */
MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high)
- MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
+ MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+MACHINE_DRIVER_END
+
+
+static MACHINE_DRIVER_START( mnumber )
+
+ MDRV_IMPORT_FROM(itgamble)
+ MDRV_CPU_REPLACE("main", H83044, ALT1_CLOCK_A/2) /* probably the wrong CPU */
+
+ MDRV_SOUND_REPLACE("oki", OKIM6295, ALT1_CLOCK_B/16)
+// MDRV_SOUND_REPLACE("oki", OKIM6295, 1584000)
+ MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) // clock frequency & pin 7 not verified
+ MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_DRIVER_END
@@ -480,6 +495,48 @@ ROM_START( euro2k2a )
ROM_END
+/***** DIFFERENT HARDWARE *****/
+
+/* Mystery Number
+
+CPU:
+
+1x HD64F3048F16 (main)(u2)
+3x XC9572 (u29,u33,u34)
+1x M6295 (u5)(sound)
+1x oscillator 24.000 MHz.
+1x oscillator 16.000 MHz.
+
+ROMs:
+
+4x M27C4001 (1,2,3,4)(main)
+1x AM27C020 (5)(sound)
+
+Note:
+
+1x JAMMA edge connector
+1x 8 legs jumper (jp1)
+1x battery
+1x 8x2 DIP switches
+1x trimmer (volume)
+
+*/
+
+ROM_START( mnumber ) /* clocks should be changed for this game */
+ ROM_REGION( 0x1000000, REGION_CPU1, 0 ) /* all the program code is in here */
+ ROM_LOAD( "mnumber_hd64f3048f16.mcu", 0x00000, 0x4000, NO_DUMP )
+
+ ROM_REGION( 0x200000, REGION_GFX1, 0 ) /* M6295 samples */
+ ROM_LOAD( "mysterynumber3.u20", 0x000000, 0x80000, CRC(251f1e11) SHA1(e8c90b289e76cea6a541b701859be6465a381668) )
+ ROM_LOAD( "mysterynumber4.u21", 0x080000, 0x80000, CRC(2b8744e4) SHA1(8a12c6f300818de3738e7c44c7df71c432cb9975) )
+ ROM_LOAD( "mysterynumber1.u22", 0x100000, 0x80000, CRC(d2ce1f61) SHA1(8f30407050fc102191747996258d4b5da3a0d994) )
+ ROM_LOAD( "mysterynumber2.u19", 0x180000, 0x80000, CRC(7b3a3b32) SHA1(9db46aa12077a48951056705491da1cce747c374) ) /* identical halves */
+
+ ROM_REGION( 0x40000, REGION_SOUND1, 0 )
+ ROM_LOAD( "mysterynumber5.u6", 0x00000, 0x40000, CRC(80aba466) SHA1(e9bf7e1c3d1c6b1b0dba43dd79a71f89e63df814) )
+ROM_END
+
+
/*************************
* Game Drivers *
*************************/
@@ -491,3 +548,4 @@ GAME( 2002, laperla, 0, itgamble, itgamble, 0, ROT0, "Nazionale Elettro
GAME( 2001, laperlag, 0, itgamble, itgamble, 0, ROT0, "Nazionale Elettronica", "La Perla Nera Gold (Ver 2.0)", GAME_NOT_WORKING )
GAME( 2001, euro2k2, 0, itgamble, itgamble, 0, ROT0, "Nazionale Elettronica", "Europa 2002 (Ver 2.0, set 1)", GAME_NOT_WORKING )
GAME( 2001, euro2k2a, euro2k2, itgamble, itgamble, 0, ROT0, "Nazionale Elettronica", "Europa 2002 (Ver 2.0, set 2)", GAME_NOT_WORKING )
+GAME( 200?, mnumber, 0, mnumber, itgamble, 0, ROT0, "M.M. - B.R.L.", "Mystery Number", GAME_NOT_WORKING )