6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
273
6
• These instructions subtract the BCD 8-digit data in the device specified by (s2) from the BCD 8-digit data in the device
specified by (s1), and store the operation result in the device specified by (d).
• If an underflow occurs, the result will be as follows. In this case, SM700 does not turn on.
(d)+1, (s1)+1, (s2)+1: Upper 4 digits
(d), (s1), (s2): Lower 4 digits
Error code
(SD0)
Description
3405H The BCD data in the device specified by (s1) is out of the range, 0 to 99999999.
The BCD data in the device specified by (s2) is out of the range, 0 to 99999999.
(s1)(s1)+1 (s2)(s2)+1 (d)(d)+1
-
1023456765 789123 55 554556
Filled with 0.
2134567921 345678 99 999999
-