Previous 15994 Revisions Next

r11044 Saturday 2nd April, 2011 at 19:41:04 UTC by Cowering
A little cleanup
[src/mess/drivers]mephisto.c

src/mess/drivers/mephisto.c
r11043r11044
6969
7070#include "emu.h"
7171#include "cpu/m6502/m6502.h"
72// #include "sound/dac.h"
7372#include "sound/beep.h"
7473//#include "mephisto.lh"
7574
r11043r11044
9089};
9190
9291
93
9492static WRITE8_HANDLER ( write_lcd )
9593{
9694   mephisto_state *state = space->machine().driver_data<mephisto_state>();
97   if (state->m_led7==0)output_set_digit_value(state->m_lcd_shift_counter,data);   // 0x109 MM IV // 0x040 MM V
95   if (state->m_led7 == 0) output_set_digit_value(state->m_lcd_shift_counter,data);   // 0x109 MM IV // 0x040 MM V
9896
9997   //output_set_digit_value(state->m_lcd_shift_counter,data ^ state->m_ram[0x165]);    // 0x109 MM IV // 0x040 MM V
10098   state->m_lcd_shift_counter--;
101   state->m_lcd_shift_counter&=3;
99   state->m_lcd_shift_counter &= 3;
102100}
103101
104102static WRITE8_HANDLER ( mephisto_NMI )
r11043r11044
362360static MACHINE_START( mephisto )
363361{
364362   mephisto_state *state = machine.driver_data<mephisto_state>();
365   state->m_lcd_shift_counter=3;
363   state->m_lcd_shift_counter = 3;
366364   state->m_allowNMI = 1;
367365   mboard_savestate_register(machine);
368366}
r11043r11044
370368static MACHINE_START( mm2 )
371369{
372370   mephisto_state *state = machine.driver_data<mephisto_state>();
373   state->m_lcd_shift_counter=3;
371   state->m_lcd_shift_counter = 3;
374372   state->m_led7=0xff;
375373
376374   mboard_savestate_register(machine);
r11043r11044
412410   MCFG_MACHINE_START( mephisto )
413411   MCFG_MACHINE_RESET( mephisto )
414412
415   /* video hardware */
416//  MCFG_DEFAULT_LAYOUT(layout_mephisto)
417
418413   /* sound hardware */
419414   MCFG_SPEAKER_STANDARD_MONO("mono")
420415   MCFG_SOUND_ADD("beep", BEEP, 0)
r11043r11044
428423   /* basic machine hardware */
429424   MCFG_CPU_MODIFY("maincpu")
430425   MCFG_CPU_PROGRAM_MAP(rebel5_mem)
431   //beep_set_frequency(0, 4000);
432426MACHINE_CONFIG_END
433427
434428static MACHINE_CONFIG_DERIVED( mm2, mephisto )
r11043r11044
475469
476470ROM_START(mm5tk)
477471   ROM_REGION(0x10000,"maincpu",0)
478   ROM_LOAD("mephisto5.rom", 0x8000, 0x8000, CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
472   ROM_LOAD("mephisto5.rom", 0x8000, 0x8000, BAD_DUMP CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
479473   ROM_SYSTEM_BIOS( 0, "none", "No Opening Library" )
480474   ROM_SYSTEM_BIOS( 1, "hg550", "HG550 Opening Library" )
481475   ROMX_LOAD("hg550.rom", 0x4000, 0x4000, CRC(0359f13d) SHA1(833cef8302ad8d283d3f95b1d325353c7e3b8614),ROM_BIOS(0))
r11043r11044
512506
513507/*    YEAR  NAME        PARENT  COMPAT  MACHINE     INPUT       INIT        COMPANY             FULLNAME                            FLAGS */
514508
509CONS( 1984, mm2,        mm4,   0,      mm2,        mephisto,   mephisto,   "Hegener & Glaser", "Mephisto MM2 Schach Computer",     GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
510CONS( 1986, rebel5,     mm4,   0,      rebel5,     mephisto,   mephisto,   "Hegener & Glaser", "Mephisto Rebel 5 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
515511CONS( 1987, mm4,        0,      0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 4 Schach Computer",       GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
516512CONS( 1987, mm4tk,      mm4,    0,      mm4tk,      mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 4 Schach Computer Turbo Kit + HG440",       GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
517513CONS( 1990, mm5,        mm4,   0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.1 Schach Computer",     GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
518CONS( 1990, mm5tk,      mm4,    0,      mm4tk,      mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.1 Schach Computer Turbo Kit + HG550",       GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
519514CONS( 1990, mm50,       mm4,   0,      mephisto,   mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.0 Schach Computer",     GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
520CONS( 1986, rebel5,     mm4,   0,      rebel5,     mephisto,   mephisto,   "Hegener & Glaser", "Mephisto Rebel 5 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
521CONS( 1984, mm2,        mm4,   0,      mm2,        mephisto,   mephisto,   "Hegener & Glaser", "Mephisto MM2 Schach Computer",     GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
515CONS( 1990, mm5tk,      mm4,    0,      mm4tk,      mephisto,   mephisto,   "Hegener & Glaser", "Mephisto 5.1 Schach Computer Turbo Kit + HG550",       GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK )
522516
523// second design sold (same computer/program?)
517

Previous 15994 Revisions Next


© 1998-2018 The MESS Team