Справочник Пользователя для Mitsubishi Electronics QCPU
6-94
NEG(P),DNEG(P)
6.3.11
Complement of 2 of BIN 16- and 32-bit data (sign reversal)
(NEG(P),DNEG(P))
NEG(P),DNEG(P)
Function
NEG
(1) Reverses the sign of the 16-bit device designated by
and stores at the device designated
by .
(2) Used when reversing positive and negative signs.
:
Head number of the devices where the data for which complement of 2 is performed is stored
(BIN 16/32 bits)
Setting
Data
Internal Devices
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
Basic
Process
High
performance
Redundant Universal
Command
Command
P
NEG, DNEG
NEGP, DNEGP
D
D
indicates an instruction symbol of
NEG/DNEG.
D
D
D
D
16 bit
Before execution
Sign conversion
b15
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
b0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
b15
1
1
1
1
1
1
1
b0
-21846
0
0
0
0
0
0
0
1
D
D
0
After execution
21846