6 logical operation instructions, Bin 16-bit 2’s complement ... neg, negp – MITSUBISHI ELECTRIC 700 Series User Manual
Page 173
168
Application instructions
3.27.6 Logical Operation Instructions :
BIN 16-bit 2’s complement ... NEG, NEGP
Functions
(1) Reverses the sign of the 16-bit data of device specified at
and stores the
result in device specified at
.
(2) Used to reverse the positive sign to the negative sign and vice versa.
Usable Devices
Digit
Designation
Error
Flag
Bit devices
Word (16-bit)
devices
Constants Level
X
Y
M
T
C
D
K
H
N
(M9010,
M9011)
NEG
{
{
{
{
{
{
{
K1 to K4
{
D
2's complement execution commands
NEG
NEGP
Head number of device
which stores data for
which 2’ complement
will be performed
D
D
D
Before
execution
Sign
conversion
After
execution
16 bits