6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
295
6
• These instructions decrement the 16-bit binary data in the device specified by (d) by one.
• When the DEC(P) instruction is executed while the data in the device specified by (d) is -32768, 32767 is stored in the
device specified by (d).
• When the DEC(P)_U instruction is executed while the data in the device specified by (d) is 0, 65535 is stored in the device
specified by (d).
There is no operation error.
(d) (d)
5678 (BIN) 5677 (BIN)
-1
b15 b0
···
b15 b0
···