summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-12-21 23:34:12 +0100
committer hap <happppp@users.noreply.github.com>2021-12-21 23:34:27 +0100
commitbd00adb24f6236e49ce3de6b92e7a52fee4f1989 (patch)
treeed32a409b6d29123b8125b6f5dd4e7561607ff9d
parent8a001561df1b3dfabe07b5f073ea746da474ee2f (diff)
sm511: assume that divider reset is same as sm510
-rw-r--r--src/devices/cpu/sm510/sm500op.cpp1
-rw-r--r--src/devices/cpu/sm510/sm510base.h1
-rw-r--r--src/devices/cpu/sm510/sm510op.cpp6
-rw-r--r--src/devices/cpu/sm510/sm511.cpp2
4 files changed, 1 insertions, 9 deletions
diff --git a/src/devices/cpu/sm510/sm500op.cpp b/src/devices/cpu/sm510/sm500op.cpp
index 8993259b460..9fb66a8a4cc 100644
--- a/src/devices/cpu/sm510/sm500op.cpp
+++ b/src/devices/cpu/sm510/sm500op.cpp
@@ -29,7 +29,6 @@ u8 sm500_device::get_digit()
}
-
// instruction set
// RAM address instructions
diff --git a/src/devices/cpu/sm510/sm510base.h b/src/devices/cpu/sm510/sm510base.h
index 3850089dc28..adcf9a881f1 100644
--- a/src/devices/cpu/sm510/sm510base.h
+++ b/src/devices/cpu/sm510/sm510base.h
@@ -263,7 +263,6 @@ protected:
virtual void op_skip();
virtual void op_cend();
virtual void op_idiv();
- virtual void op_dr();
virtual void op_dta();
virtual void op_clklo();
virtual void op_clkhi();
diff --git a/src/devices/cpu/sm510/sm510op.cpp b/src/devices/cpu/sm510/sm510op.cpp
index 8f09d5f3dab..672209861aa 100644
--- a/src/devices/cpu/sm510/sm510op.cpp
+++ b/src/devices/cpu/sm510/sm510op.cpp
@@ -438,12 +438,6 @@ void sm510_base_device::op_idiv()
m_div = 0;
}
-void sm510_base_device::op_dr()
-{
- // DR: reset divider low 8 bits
- m_div &= 0x7f;
-}
-
void sm510_base_device::op_dta()
{
// DTA: transfer divider low 4 bits to ACC
diff --git a/src/devices/cpu/sm510/sm511.cpp b/src/devices/cpu/sm510/sm511.cpp
index c678ba975b7..b80427c5f8c 100644
--- a/src/devices/cpu/sm510/sm511.cpp
+++ b/src/devices/cpu/sm510/sm511.cpp
@@ -215,7 +215,7 @@ void sm511_device::execute_one()
case 0x62: op_wr(); break;
case 0x63: op_ws(); break;
case 0x64: op_incb(); break;
- case 0x65: op_dr(); break;
+ case 0x65: op_idiv(); break;
case 0x66: op_rc(); break;
case 0x67: op_sc(); break;
case 0x6c: op_decb(); break;