src/mess/drivers/mephisto.c
| r11043 | r11044 | |
| 69 | 69 | |
| 70 | 70 | #include "emu.h" |
| 71 | 71 | #include "cpu/m6502/m6502.h" |
| 72 | | // #include "sound/dac.h" |
| 73 | 72 | #include "sound/beep.h" |
| 74 | 73 | //#include "mephisto.lh" |
| 75 | 74 | |
| r11043 | r11044 | |
| 90 | 89 | }; |
| 91 | 90 | |
| 92 | 91 | |
| 93 | | |
| 94 | 92 | static WRITE8_HANDLER ( write_lcd ) |
| 95 | 93 | { |
| 96 | 94 | 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 |
| 98 | 96 | |
| 99 | 97 | //output_set_digit_value(state->m_lcd_shift_counter,data ^ state->m_ram[0x165]); // 0x109 MM IV // 0x040 MM V |
| 100 | 98 | state->m_lcd_shift_counter--; |
| 101 | | state->m_lcd_shift_counter&=3; |
| 99 | state->m_lcd_shift_counter &= 3; |
| 102 | 100 | } |
| 103 | 101 | |
| 104 | 102 | static WRITE8_HANDLER ( mephisto_NMI ) |
| r11043 | r11044 | |
| 362 | 360 | static MACHINE_START( mephisto ) |
| 363 | 361 | { |
| 364 | 362 | mephisto_state *state = machine.driver_data<mephisto_state>(); |
| 365 | | state->m_lcd_shift_counter=3; |
| 363 | state->m_lcd_shift_counter = 3; |
| 366 | 364 | state->m_allowNMI = 1; |
| 367 | 365 | mboard_savestate_register(machine); |
| 368 | 366 | } |
| r11043 | r11044 | |
| 370 | 368 | static MACHINE_START( mm2 ) |
| 371 | 369 | { |
| 372 | 370 | mephisto_state *state = machine.driver_data<mephisto_state>(); |
| 373 | | state->m_lcd_shift_counter=3; |
| 371 | state->m_lcd_shift_counter = 3; |
| 374 | 372 | state->m_led7=0xff; |
| 375 | 373 | |
| 376 | 374 | mboard_savestate_register(machine); |
| r11043 | r11044 | |
| 412 | 410 | MCFG_MACHINE_START( mephisto ) |
| 413 | 411 | MCFG_MACHINE_RESET( mephisto ) |
| 414 | 412 | |
| 415 | | /* video hardware */ |
| 416 | | // MCFG_DEFAULT_LAYOUT(layout_mephisto) |
| 417 | | |
| 418 | 413 | /* sound hardware */ |
| 419 | 414 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 420 | 415 | MCFG_SOUND_ADD("beep", BEEP, 0) |
| r11043 | r11044 | |
| 428 | 423 | /* basic machine hardware */ |
| 429 | 424 | MCFG_CPU_MODIFY("maincpu") |
| 430 | 425 | MCFG_CPU_PROGRAM_MAP(rebel5_mem) |
| 431 | | //beep_set_frequency(0, 4000); |
| 432 | 426 | MACHINE_CONFIG_END |
| 433 | 427 | |
| 434 | 428 | static MACHINE_CONFIG_DERIVED( mm2, mephisto ) |
| r11043 | r11044 | |
| 475 | 469 | |
| 476 | 470 | ROM_START(mm5tk) |
| 477 | 471 | 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)) |
| 479 | 473 | ROM_SYSTEM_BIOS( 0, "none", "No Opening Library" ) |
| 480 | 474 | ROM_SYSTEM_BIOS( 1, "hg550", "HG550 Opening Library" ) |
| 481 | 475 | ROMX_LOAD("hg550.rom", 0x4000, 0x4000, CRC(0359f13d) SHA1(833cef8302ad8d283d3f95b1d325353c7e3b8614),ROM_BIOS(0)) |
| r11043 | r11044 | |
| 512 | 506 | |
| 513 | 507 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 514 | 508 | |
| 509 | CONS( 1984, mm2, mm4, 0, mm2, mephisto, mephisto, "Hegener & Glaser", "Mephisto MM2 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 510 | CONS( 1986, rebel5, mm4, 0, rebel5, mephisto, mephisto, "Hegener & Glaser", "Mephisto Rebel 5 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 515 | 511 | CONS( 1987, mm4, 0, 0, mephisto, mephisto, mephisto, "Hegener & Glaser", "Mephisto 4 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 516 | 512 | CONS( 1987, mm4tk, mm4, 0, mm4tk, mephisto, mephisto, "Hegener & Glaser", "Mephisto 4 Schach Computer Turbo Kit + HG440", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 517 | 513 | CONS( 1990, mm5, mm4, 0, mephisto, mephisto, mephisto, "Hegener & Glaser", "Mephisto 5.1 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 518 | | CONS( 1990, mm5tk, mm4, 0, mm4tk, mephisto, mephisto, "Hegener & Glaser", "Mephisto 5.1 Schach Computer Turbo Kit + HG550", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 519 | 514 | CONS( 1990, mm50, mm4, 0, mephisto, mephisto, mephisto, "Hegener & Glaser", "Mephisto 5.0 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 520 | | CONS( 1986, rebel5, mm4, 0, rebel5, mephisto, mephisto, "Hegener & Glaser", "Mephisto Rebel 5 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 521 | | CONS( 1984, mm2, mm4, 0, mm2, mephisto, mephisto, "Hegener & Glaser", "Mephisto MM2 Schach Computer", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 515 | CONS( 1990, mm5tk, mm4, 0, mm4tk, mephisto, mephisto, "Hegener & Glaser", "Mephisto 5.1 Schach Computer Turbo Kit + HG550", GAME_SUPPORTS_SAVE|GAME_REQUIRES_ARTWORK ) |
| 522 | 516 | |
| 523 | | // second design sold (same computer/program?) |
| 517 | |