summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm510/sm500op.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2017-06-24 17:14:32 +0200
committer hap <happppp@users.noreply.github.com>2017-06-24 17:14:32 +0200
commit4cc7afc65c8ddc67c9f64fc6df11775d4b2de4ad (patch)
tree5698fa8e4ed2e8326e59b924be708a0fd342edba /src/devices/cpu/sm510/sm500op.cpp
parentc7301ced32518749d1b550cf40eb4fc4abf01fff (diff)
sm500: added device start/reset (nw)
Diffstat (limited to 'src/devices/cpu/sm510/sm500op.cpp')
-rw-r--r--src/devices/cpu/sm510/sm500op.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/cpu/sm510/sm500op.cpp b/src/devices/cpu/sm510/sm500op.cpp
index acb2864cec2..102537190ee 100644
--- a/src/devices/cpu/sm510/sm500op.cpp
+++ b/src/devices/cpu/sm510/sm500op.cpp
@@ -183,6 +183,12 @@ void sm500_device::op_exkfa()
// Divider manipulation instructions
+void sm500_device::op_idiv()
+{
+ // IDIV: reset divider low 9 bits
+ m_div &= 0x3f;
+}
+
// Bit manipulation instructions