6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
269
6
• These instructions add the BCD 8-digit data in the device specified by (s1) and the BCD 8-digit data in the device specified
by (s2), and store the operation result in the device specified by (d).
• If the result exceeds 99999999, the carry bit is ignored. 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 85 023690
Filled with 0.
1065432199 000000 00 654321
+