From 2d9ea08201e500695e9b9ef536b7aa12d60f341d Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 27 Jul 2019 20:23:06 +0200 Subject: [PATCH] tking.lay placeholder (nw) --- src/mame/drivers/compuchess.cpp | 6 +- src/mame/drivers/saitek_delta1.cpp | 2 +- src/mame/drivers/saitek_stratos.cpp | 13 +- src/mame/layout/saitek_tking.lay | 747 ++++++++++++++++++++++++++++ 4 files changed, 761 insertions(+), 7 deletions(-) create mode 100644 src/mame/layout/saitek_tking.lay diff --git a/src/mame/drivers/compuchess.cpp b/src/mame/drivers/compuchess.cpp index 26384e45efb..e839f76cbb2 100644 --- a/src/mame/drivers/compuchess.cpp +++ b/src/mame/drivers/compuchess.cpp @@ -9,7 +9,7 @@ Driver largely rewritten over the years. TODO: - cncchess sound is wrong, it should be a long dual-tone alarm sound -- verify CPU speed +- verify CPU speed (cmpchess XTAL is not 100% certain) - dump/add cmpchess2 BTANB: @@ -360,7 +360,7 @@ void cmpchess_state::cmpchess(machine_config &config) m_display->set_segmask(0xf, 0xff); config.set_default_layout(layout_cmpchess); - TIMER(config, "blink_display").configure_periodic(FUNC(cmpchess_state::blink), attotime::from_msec(250)); // approximation + TIMER(config, "blink_display").configure_periodic(FUNC(cmpchess_state::blink), attotime::from_msec(200)); // approximation } void cmpchess_state::mk1(machine_config &config) @@ -368,7 +368,7 @@ void cmpchess_state::mk1(machine_config &config) cmpchess(config); /* basic machine hardware */ - m_maincpu->set_clock(2000000); // it's a bit faster than cmpchess + m_maincpu->set_clock(2000000); // JS&A version measured 2.18MHz on average subdevice("smi")->set_clock(2000000); config.set_default_layout(layout_novag_mk1); diff --git a/src/mame/drivers/saitek_delta1.cpp b/src/mame/drivers/saitek_delta1.cpp index f668d9d2339..c0b3f116bd4 100644 --- a/src/mame/drivers/saitek_delta1.cpp +++ b/src/mame/drivers/saitek_delta1.cpp @@ -220,7 +220,7 @@ void delta1_state::delta1(machine_config &config) m_display->set_segmask(0xf, 0x7f); config.set_default_layout(layout_saitek_delta1); - TIMER(config, "display_blink").configure_periodic(FUNC(delta1_state::blink), attotime::from_msec(250)); // approximation + TIMER(config, "display_blink").configure_periodic(FUNC(delta1_state::blink), attotime::from_msec(200)); // approximation } diff --git a/src/mame/drivers/saitek_stratos.cpp b/src/mame/drivers/saitek_stratos.cpp index 0d968b0524c..fbe620f90c4 100644 --- a/src/mame/drivers/saitek_stratos.cpp +++ b/src/mame/drivers/saitek_stratos.cpp @@ -44,7 +44,6 @@ TODO: - emulate LCD at lower level, probably an MCU with embedded LCDC - LCD status bit handling is guessed. stratos expects it to be high after lcd command 0xf, but tking2 won't work if it's done that way, and corona is different too -- tking different internal artwork - irq timing is derived from the main XTAL, but result should be similar with 5MHz and 5.67MHz, there are a couple of "FREQ. SEL" nodes on the PCB, maybe related (not the ones in input ports) - tking(old revisions) and stratos slow responsive buttons, related to irq timing, but if that's changed, @@ -67,6 +66,7 @@ TODO: // internal artwork #include "saitek_stratos.lh" // clickable +#include "saitek_tking.lh" // clickable class stratos_state : public saitek_stratos_state @@ -86,6 +86,7 @@ public: // machine drivers void stratos(machine_config &config); + void tking(machine_config &config); void tking2(machine_config &config); protected: @@ -517,6 +518,12 @@ void stratos_state::stratos(machine_config &config) SOFTWARE_LIST(config, "cart_list").set_original("saitek_egr"); } +void stratos_state::tking(machine_config &config) +{ + stratos(config); + config.set_default_layout(layout_saitek_tking); +} + void stratos_state::tking2(machine_config &config) { stratos(config); @@ -574,5 +581,5 @@ CONS( 1987, stratos, 0, 0, stratos, stratos, stratos_state, empty_init, " CONS( 1987, stratosa, stratos, 0, stratos, stratos, stratos_state, empty_init, "SciSys", "Kasparov Stratos (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) CONS( 1990, tking, 0, 0, tking2, tking2, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. D)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) // aka Turbo King II -CONS( 1988, tkinga, tking, 0, stratos, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1988, tkingb, tking, 0, stratos, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) +CONS( 1988, tkinga, tking, 0, tking, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) +CONS( 1988, tkingb, tking, 0, tking, stratos, stratos_state, empty_init, "Saitek", "Kasparov Turbo King (ver. B, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS | MACHINE_CLICKABLE_ARTWORK ) diff --git a/src/mame/layout/saitek_tking.lay b/src/mame/layout/saitek_tking.lay new file mode 100644 index 00000000000..59ba13f7459 --- /dev/null +++ b/src/mame/layout/saitek_tking.lay @@ -0,0 +1,747 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +