summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2015-03-16 00:41:00 +0100
committer hap <happppp@users.noreply.github.com>2015-03-16 00:41:00 +0100
commitb685e5264ead9ed98ff8c7d2dafa038618fb957c (patch)
tree48e3388d7bb409dd7c1baa721271d4147d2dffad
parentb1abbbd0296891356a2fda0eff2a479ce804bf55 (diff)
ah, i forgot to add the /4 divider
-rw-r--r--src/emu/cpu/hmcs40/hmcs40.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/cpu/hmcs40/hmcs40.h b/src/emu/cpu/hmcs40/hmcs40.h
index 38750c0dd6a..6dd5166df87 100644
--- a/src/emu/cpu/hmcs40/hmcs40.h
+++ b/src/emu/cpu/hmcs40/hmcs40.h
@@ -144,6 +144,8 @@ protected:
virtual void device_reset();
// device_execute_interface overrides
+ virtual UINT64 execute_clocks_to_cycles(UINT64 clocks) const { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle
+ virtual UINT64 execute_cycles_to_clocks(UINT64 cycles) const { return (cycles * 4); } // "
virtual UINT32 execute_min_cycles() const { return 1; }
virtual UINT32 execute_max_cycles() const { return 2; }
virtual UINT32 execute_input_lines() const { return 2+1; } // 3rd one is internal