240
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
• These instructions subtract the 16-bit binary data in the device specified by (s) from the 16-bit binary data in the device
specified by (d), and store the operation result in the device specified by (d).
• If an underflow occurs in the result, the borrow bit is ignored. In this case, SM700 does not turn on.
There is no operation error.
[-(P) instruction]
[-(P)_U instruction]
b15 b0
5678 (BIN)
(d) (s) (d)
1234 (BIN) 4444 (BIN)
-
···
b15 b0
···
b15 b0
···
b15 b0
-12345 (BIN)
(d) (s) (d)
23456 (BIN) -3033 (BIN)
-
···
b15 b0
···
b15 b0
···
b15 b0
12345 (BIN)
(d) (s) (d)
-23456 (BIN) 3034 (BIN)
-
···
b15 b0
···
b15 b0
···
b15 b0
56789 (BIN)
(d) (s) (d)
-12345 (BIN) 3599 (BIN)
-
···
b15 b0
···
b15 b0
···