From 9db3fe893cf19bd5b912763d68a7a8331a8cbaad Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 8 Jul 2023 16:03:05 +0200 Subject: [PATCH] vclock3: increase cpu clock to match better with real time --- src/mame/handheld/hh_tms1k.cpp | 5 +++-- src/mame/konami/konmedal.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mame/handheld/hh_tms1k.cpp b/src/mame/handheld/hh_tms1k.cpp index d81fe02c852..35b19d666b8 100644 --- a/src/mame/handheld/hh_tms1k.cpp +++ b/src/mame/handheld/hh_tms1k.cpp @@ -11669,7 +11669,8 @@ ROM_END Even though it has a 60 Hz inputline, it doesn't use it to sync the clock. Instead, it relies on the MCU frequency, which is not very accurate when - using a simple R/C osc. + using a simple R/C osc. In 60 Hz mode, it expects a CPU clock of around + 375 kHz, and in 50 Hz mode around 369 kHz. Micronta is not a company, but one of the Radio Shack house brands. Schematics are included in the manual, they also mention a CM72005 VSM. @@ -11821,7 +11822,7 @@ INPUT_PORTS_END void vclock3_state::vclock3(machine_config &config) { // basic machine hardware - TMS1100(config, m_maincpu, 320000); // approximation - RC osc. R=47K, C=47pF + TMS1100(config, m_maincpu, 375000); // approximation - RC osc. R=47K, C=47pF m_maincpu->read_k().set(FUNC(vclock3_state::read_k)); m_maincpu->write_r().set(FUNC(vclock3_state::write_r)); m_maincpu->write_o().set(FUNC(vclock3_state::write_o)); diff --git a/src/mame/konami/konmedal.cpp b/src/mame/konami/konmedal.cpp index a8bdd86420a..d0dcff9123c 100644 --- a/src/mame/konami/konmedal.cpp +++ b/src/mame/konami/konmedal.cpp @@ -175,7 +175,7 @@ private: u8 m_control2 = 0; u8 m_shuri_irq = 0; int m_ccu_int_time = 0; - int m_ccu_int_time_count = 0;; + int m_ccu_int_time_count = 0; int m_avac = 0; int m_layer_colorbase[4] = { }; int m_layer_order[4] = { };