6.3.3
Complement of 2 of BIN 16- and 32-bit data (sign reversal)
(NEG(P), DNEG(P))
NEG(P), DNEG(P)
NEG, DNEG
NEGP, DNEGP
Function
NEG
(1) Reverses the sign of the 16-bit device designated by
by
D
Before
execution
Sign
conversion
After
execution
(2) Used when reversing positive and negative signs.
6.3.3 Complement of 2 of BIN 16- and 32-bit data (sign reversal) (NEG(P), DNEG(P))
Command
Command
D
: Start number of the devices where the data for which complement of 2 is performed is stored (BIN 16/32 bits)
Internal Devices
Set
Data
Bit
D
.
b15
D
1
0
1
0
1
0
0
0
0
1
0
1
0
b15
0
1
0
1
D
Constants
Others
Word
––
and stores at the device designated
D
16 bits
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
0
0
1
0
1
0
1
0
1
6.3 Data Conversion Instructions
NEG(P), DNEG(P)
indicates "NEG / DNEG".
D
P
D
b0
1
0
1
0
21846
0
0
0
0
1
0
1
0
b0
0
1
1
0
21846
6
6-27