Previous 15994 Revisions Next

r10604 Sunday 27th February, 2011 at 18:40:49 UTC by Cowering
fix up Mephisto NMI enable, add MMIV Turbo Kit with MM V equivalent clock and artwork for same.
[artwork]mm4.zip
[src/mess]messdriv.c
[src/mess/drivers]mephisto.c

src/mess/messdriv.c
r10603r10604
15981598//  DRIVER( mephisto )  /* Mephisto  */
15991599   DRIVER( mm2 )       /* Mephisto 2 */
16001600   DRIVER( mm4 )       /* Mephisto 4       */
1601   DRIVER( mm4tk )       /* Mephisto 4 Turbo Kit  */
16011602   DRIVER( mm5 )       /* Mephisto 5.1 ROM   */
1603   DRIVER( mm5tk )       /* Mephisto 5.1 ROM Turbo Kit Speed   */
16021604   DRIVER( mm50 )      /* Mephisto 5.0 ROM    */
16031605   DRIVER( rebel5 )    /* Mephisto 5      */
16041606   DRIVER( glasgow )       /* Glasgow     */
r10603r10604
16091611   DRIVER( roma )      /* Roma    */
16101612   DRIVER( roma32 )    /* Roma  */
16111613    DRIVER( polgar )      /* Polgar    */
1614   DRIVER( polgar )      /* Polgar    */
16121615   DRIVER( milano )      /* Milano    */
16131616
1617
16141618   /* JAKKS Pacific, Inc. / HotGen, Ltd. */
16151619   DRIVER( batmantv )   /* The Batman, 2004 */
16161620
src/mess/drivers/mephisto.c
r10603r10604
5353
5454*/
5555
56/*  Mephisto 4 Turbo Kit 18mhz - (mm4tk)
57   This is a replacement rom combining the turbo kit initial rom with the original MM IV.
58   The Turbo Kit powers up to it's tiny rom, copies itself to ram, banks in normal rom,
59   copies that to faster SRAM, then patches the checksum and the LED blink delays.
60   If someone else wants to code up the power up banking, feel free
61
62   There is an undumped MM V Turbo Kit, which will be the exact same except for location of
63   the patches. The mm5tk just needs the normal mm5 ROM swapped out for that one to
64   blinks the LEDs a little slower.
65
66   -- Cowering (2011)
67*/
68
69
5670#include "emu.h"
5771#include "cpu/m6502/m6502.h"
5872// #include "sound/dac.h"
r10603r10604
7286   UINT8 led_status;
7387   UINT8 *ram;
7488   UINT8 led7;
89   UINT8 allowNMI;
7590};
7691
7792
r10603r10604
86101   state->lcd_shift_counter&=3;
87102}
88103
104static WRITE8_HANDLER ( mephisto_NMI )
105{
106
107   mephisto_state *state = space->machine->driver_data<mephisto_state>();
108   state->allowNMI = 1;
109}
110
89111static READ8_HANDLER(read_keys)
90112{
91113   mephisto_state *state = space->machine->driver_data<mephisto_state>();
r10603r10604
157179   AM_RANGE( 0x3400, 0x3407) AM_WRITE( write_led )         // Status LEDs+ buzzer
158180   AM_RANGE( 0x2400, 0x2407) AM_WRITE ( mboard_write_LED_8 )      // Chessboard
159181   AM_RANGE( 0x2800, 0x2800) AM_WRITE ( mboard_write_board_8)      // Chessboard
160   AM_RANGE( 0x3800, 0x3800) AM_RAM                  // unknwon write access
182   AM_RANGE( 0x3800, 0x3800) AM_WRITE ( mephisto_NMI )         // NMI enable
161183   AM_RANGE( 0x3000, 0x3000) AM_READ( mboard_read_board_8 )      // Chessboard
162184   AM_RANGE( 0x4000, 0x7fff) AM_ROM                  // Opening Library
163185   AM_RANGE( 0x8000, 0xffff) AM_ROM
r10603r10604
320342{
321343   mephisto_state *state = timer.machine->driver_data<mephisto_state>();
322344   device_t *speaker = timer.machine->device("beep");
323   cputag_set_input_line(timer.machine, "maincpu", INPUT_LINE_NMI,PULSE_LINE);
324   // dac_data_w(0,state->led_status&64?128:0);
345   if (state->allowNMI) {
346      state->allowNMI = 0;
347      cputag_set_input_line(timer.machine, "maincpu", INPUT_LINE_NMI,PULSE_LINE);
348   }
325349   beep_set_state(speaker,state->led_status&64?1:0);
326350}
327351
r10603r10604
339363{
340364   mephisto_state *state = machine->driver_data<mephisto_state>();
341365   state->lcd_shift_counter=3;
342
366   state->allowNMI = 1;
343367   mboard_savestate_register(machine);
344368}
345369
r10603r10604
357381{
358382   mephisto_state *state = machine->driver_data<mephisto_state>();
359383   state->lcd_shift_counter = 3;
360
384   state->allowNMI = 1;
361385   mboard_set_border_pieces();
362386   mboard_set_board();
363387
r10603r10604
367391      output_set_value("MM",1);
368392   else if (!strcmp(machine->m_game.name,"mm4") )
369393      output_set_value("MM",2);
394   else if (!strcmp(machine->m_game.name,"mm4tk") )
395      output_set_value("MM",5);
396   else if (!strcmp(machine->m_game.name,"mm5tk") )
397      output_set_value("MM",5);
370398   else if (!strcmp(machine->m_game.name,"mm5") )
371399      output_set_value("MM",3);
372400   else if (!strcmp(machine->m_game.name,"mm50") )
r10603r10604
398426
399427static MACHINE_CONFIG_DERIVED( rebel5, mephisto )
400428   /* basic machine hardware */
401//  MCFG_IMPORT_FROM( mephisto )
402429   MCFG_CPU_MODIFY("maincpu")
403430   MCFG_CPU_PROGRAM_MAP(rebel5_mem)
404431   //beep_set_frequency(0, 4000);
405432MACHINE_CONFIG_END
406433
407434static MACHINE_CONFIG_DERIVED( mm2, mephisto )
408//  MCFG_IMPORT_FROM( mephisto )
409435   MCFG_CPU_REPLACE("maincpu", M65C02, 3700000)
410436   MCFG_CPU_PROGRAM_MAP(mm2_mem)
411437   MCFG_MACHINE_START( mm2 )
r10603r10604
414440   MCFG_TIMER_ADD_PERIODIC("irq_timer", update_irq, attotime::from_hz(450))
415441MACHINE_CONFIG_END
416442
443static MACHINE_CONFIG_DERIVED( mm4tk, mephisto )
444   MCFG_CPU_MODIFY("maincpu")
445   MCFG_CPU_REPLACE("maincpu", M65C02, 18000000)
446   MCFG_CPU_PROGRAM_MAP(mephisto_mem)
447MACHINE_CONFIG_END
417448
418449ROM_START(rebel5)
419450   ROM_REGION(0x10000,"maincpu",0)
r10603r10604
434465   ROMX_LOAD( "hg440.rom", 0x4000, 0x4000, CRC(81ffcdfd) SHA1(b0f7bcc11d1e821daf92cde31e3446c8be0bbe19), ROM_BIOS(2))
435466ROM_END
436467
468ROM_START(mm4tk)
469   ROM_REGION(0x10000,"maincpu",0)
470   ROM_LOAD("mm4tk.rom", 0x8000, 0x8000, CRC(51cb36a4) SHA1(9e184b4e85bb721e794b88d8657ae8d2ff5a24af))
471   ROM_SYSTEM_BIOS( 0, "none", "No Opening Library" )
472   ROM_SYSTEM_BIOS( 1, "hg440", "HG440 Opening Library" )
473   ROMX_LOAD( "hg440.rom", 0x4000, 0x4000, CRC(81ffcdfd) SHA1(b0f7bcc11d1e821daf92cde31e3446c8be0bbe19), ROM_BIOS(0))
474ROM_END
475
476ROM_START(mm5tk)
477   ROM_REGION(0x10000,"maincpu",0)
478   ROM_LOAD("mephisto5.rom", 0x8000, 0x8000, CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
479   ROM_SYSTEM_BIOS( 0, "none", "No Opening Library" )
480   ROM_SYSTEM_BIOS( 1, "hg550", "HG550 Opening Library" )
481   ROMX_LOAD("hg550.rom", 0x4000, 0x4000, CRC(0359f13d) SHA1(833cef8302ad8d283d3f95b1d325353c7e3b8614),ROM_BIOS(0))
482ROM_END
483
437484ROM_START(mm5)
438485   ROM_REGION(0x10000,"maincpu",0)
439486   ROM_LOAD("mephisto5.rom", 0x8000, 0x8000, CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
r10603r10604
466513/*    YEAR  NAME        PARENT  COMPAT  MACHINE     INPUT       INIT        COMPANY             FULLNAME                            FLAGS */
467514
468515CONS( 1987, mm4,        0,      0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 4 Schach Computer",       GAME_SUPPORTS_SAVE )
516CONS( 1987, mm4tk,      mm4,    0,      mm4tk,      mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 4 Schach Computer Turbo Kit + HG440",       GAME_SUPPORTS_SAVE )
469517CONS( 1990, mm5,        mm4,   0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.1 Schach Computer",     GAME_SUPPORTS_SAVE )
518CONS( 1990, mm5tk,      mm4,    0,      mm4tk,      mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.1 Schach Computer Turbo Kit + HG550",       GAME_SUPPORTS_SAVE )
470519CONS( 1990, mm50,       mm4,   0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.0 Schach Computer",     GAME_SUPPORTS_SAVE )
471520CONS( 1986, rebel5,     mm4,   0,      rebel5,     mephisto,   mephisto,   "Hegener & Glaser", "Mephisto Rebel 5 Schach Computer", GAME_SUPPORTS_SAVE )
472521CONS( 1984, mm2,        mm4,   0,      mm2,        mephisto,   mephisto,   "Hegener & Glaser", "Mephisto MM2 Schach Computer",     GAME_SUPPORTS_SAVE )
artwork/mm4.zip

Previous 15994 Revisions Next


© 1998-2018 The MESS Team