From 4b8555ff72ab7f6dab6bf7d8fa4ad935c2b96c79 Mon Sep 17 00:00:00 2001 From: hap Date: Wed, 30 Aug 2023 13:32:37 +0200 Subject: cking_master: add M1 waitstate --- src/mame/chess/cking_master.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mame/chess/cking_master.cpp b/src/mame/chess/cking_master.cpp index 4f121c21b00..1a40def69c5 100644 --- a/src/mame/chess/cking_master.cpp +++ b/src/mame/chess/cking_master.cpp @@ -12,11 +12,6 @@ Hardware notes: - simple I/O via 2*74373 and a 74145 - 8*8 chessboard buttons, 32+1 border leds, piezo -TODO: -- 1 WAIT CLK per M1, workaround with z80_set_cycle_tables is possible - (wait state is similar to MSX) but I can't be bothered, better solution - is to add M1 pin to the z80 core. Until then, it'll run ~20% too fast. - *******************************************************************************/ #include "emu.h" @@ -59,7 +54,7 @@ protected: private: // devices/pointers - required_device m_maincpu; + required_device m_maincpu; required_device m_display; required_device m_board; required_device m_dac; @@ -215,6 +210,7 @@ void master_state::master(machine_config &config) { // basic machine hardware Z80(config, m_maincpu, 8_MHz_XTAL/2); + m_maincpu->z80_set_m1_cycles(5); // 1 WAIT CLK per M1 m_maincpu->set_addrmap(AS_PROGRAM, &master_state::main_trampoline); ADDRESS_MAP_BANK(config, "mainmap").set_map(&master_state::main_map).set_options(ENDIANNESS_LITTLE, 8, 16); -- cgit v1.2.3