summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-13 23:34:35 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-13 23:34:35 -0500
commit63d10c6d900b4be742d5c9e36f4b43f5b7c134cd (patch)
treecad8d9b78126d716bef51c59661c9b8559c36160 /src/devices
parentfb4480205c1a90ba51a46d082fd58189951ffb3d (diff)
mc68hc11: Clock is internally divided by 4
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/cpu/mc68hc11/mc68hc11.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/cpu/mc68hc11/mc68hc11.h b/src/devices/cpu/mc68hc11/mc68hc11.h
index 309bdb28c6f..b9f7c237037 100644
--- a/src/devices/cpu/mc68hc11/mc68hc11.h
+++ b/src/devices/cpu/mc68hc11/mc68hc11.h
@@ -60,6 +60,8 @@ protected:
virtual uint32_t execute_min_cycles() const noexcept override { return 1; }
virtual uint32_t execute_max_cycles() const noexcept override { return 41; }
virtual uint32_t execute_input_lines() const noexcept override { return 2; }
+ virtual uint64_t execute_clocks_to_cycles(uint64_t clocks) const noexcept override { return (clocks + 4 - 1) / 4; }
+ virtual uint64_t execute_cycles_to_clocks(uint64_t cycles) const noexcept override { return (cycles * 4); }
virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;