summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/dsp16
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-03-29 23:09:51 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2014-03-29 23:09:51 +0000
commitabfdf76dae62184bab6268de2160d2ce92f6a8df (patch)
tree3096cc71a08a9c03e674477deb1dab671ec41f1d /src/emu/cpu/dsp16
parent899f0b20425fdfbc2763a89df53a8e7e6ef39cb2 (diff)
dsp16 has an internal /2 divider
Diffstat (limited to 'src/emu/cpu/dsp16')
-rw-r--r--src/emu/cpu/dsp16/dsp16.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/cpu/dsp16/dsp16.h b/src/emu/cpu/dsp16/dsp16.h
index 8ab6834bec2..db8cb49b3c8 100644
--- a/src/emu/cpu/dsp16/dsp16.h
+++ b/src/emu/cpu/dsp16/dsp16.h
@@ -32,6 +32,8 @@ protected:
virtual void device_reset();
// device_execute_interface overrides
+ virtual UINT64 execute_clocks_to_cycles(UINT64 clocks) const { return (clocks + 2 - 1) / 2; } // internal /2 divider
+ virtual UINT64 execute_cycles_to_clocks(UINT64 cycles) const { return (cycles * 2); } // internal /2 divider
virtual UINT32 execute_min_cycles() const;
virtual UINT32 execute_max_cycles() const;
virtual UINT32 execute_input_lines() const;