summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2023-08-30 20:07:21 +0200
committer hap <happppp@users.noreply.github.com>2023-08-30 20:07:21 +0200
commit39c569dc069d530bc14e2e75843f751b075ac61f (patch)
tree27529de83a30ecd92ff866d82c0a593eb7a83a3a
parentf6ff2217e145d9277491c8d751d15a90b5d63c87 (diff)
Revert "cking_master: add M1 waitstate"
This reverts commit 4b8555ff72ab7f6dab6bf7d8fa4ad935c2b96c79.
-rw-r--r--src/mame/chess/cking_master.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/chess/cking_master.cpp b/src/mame/chess/cking_master.cpp
index 20e1040833f..a16fe428745 100644
--- a/src/mame/chess/cking_master.cpp
+++ b/src/mame/chess/cking_master.cpp
@@ -12,6 +12,11 @@ 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"
@@ -54,7 +59,7 @@ protected:
private:
// devices/pointers
- required_device<z80_device> m_maincpu;
+ required_device<cpu_device> m_maincpu;
required_device<pwm_display_device> m_display;
required_device<sensorboard_device> m_board;
required_device<dac_2bit_ones_complement_device> m_dac;
@@ -216,7 +221,6 @@ 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);