From bd00adb24f6236e49ce3de6b92e7a52fee4f1989 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 21 Dec 2021 23:34:12 +0100 Subject: sm511: assume that divider reset is same as sm510 --- src/devices/cpu/sm510/sm500op.cpp | 1 - src/devices/cpu/sm510/sm510base.h | 1 - src/devices/cpu/sm510/sm510op.cpp | 6 ------ src/devices/cpu/sm510/sm511.cpp | 2 +- 4 files changed, 1 insertion(+), 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; -- cgit v1.2.3