assume D0 = 123456789 and D1 = -123456789 and R1 = 1234567.890 and X0 = ON
|
D0 = -D0
|
D0 = - (123456789)
D0 = -123456789
|
The operand is a signed integer memory location.
The result is placed in a signed integer memory location.
|
D0 = -D1
|
D0 = - (-123456789)
D0 = 123456789
|
The operand is a signed integer memory location.
The result is placed in a signed integer memory location.
|
R0 = -R1
|
R0 = - (1234567.890)
R0 = -1234567.890
|
The operand is a Real memory location.
The result is placed in a Real memory location.
|
C0 = -X0
|
C0 = - ( 0000_0000_0000_00001 )
C0 = 1111_1111_1111_1111
C0 = ON
|
The operand is a discrete memory location.
X0 is promoted to32-bit 2’s complement equivalent of 1. Negating
it gives you -1, which in terms of a numeric compare, is still ON (non-zero).
The result is placed in a discrete memory location.
|