(105)
NEGL 0800 D01100
0000
00
224
5-17-6 DOUBLE 2’S COMPLEMENT: NEGL(105)
(105)
NEGL S R
R: 1
st
result word CIO, G, A, DM
S: 1
st
source word CIO, G, A, T, C, #, DM
Operand Data AreasLadder Symbol
Variations
j NEGL(105)
When the execution condition is OFF, NEGL(105) is not executed. When the
execution condition is ON, NEGL(105) converts the 8-digit hexadecimal content
of the source words (S and S+1) to its 2’s complement and outputs the result to
the result words (R and R+1). This operation is effectively the same as subtract-
ing the 8-digit content S and S+1 from $0000 0000 and outputting the result to R
and R+1.
Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
EQ (A50006): Content of S and S+1 is 0 (the content of R and R+1 will also
be 0 after execution)
N (A50008): Shows the status of bit 15 of R+1 after execution.
Example When CIO 000000 is ON in the following example, the 8-digit hexadecimal con-
tent of CIO 0000 and CIO 0001 is converted to its 2’s complement equivalent
and stored in D01100 and D01101.
Address Instruction Operands
00000 LD 000000
00001 NEGL(105)
0800
D01100
F F F F F F F F
x10
3
x10
2
x10
1
x10
0
x10
7
x10
6
x10
5
x10
4
0 0 0 0 0 0 0 1
S+1: CIO 0801 S: CIO 0800
#00000000
0 0 0 0 0 0 0 0
R+1: D01101 R: D00100
Description
Precautions
Conversion Instructions Section 5-17