![Omron CJ1G-CPU series Programming Manual Download Page 121](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489121.webp)
100
Conversion Instructions
Section 3-10
2’S COMPLE-
MENT
NEG
@NEG
160
Output
Required
DOUBLE 2’S
COMPLEMENT
NEGL
@NEGL
161
Output
Required
16-BIT TO 32-BIT
SIGNED BINARY
SIGN
@SIGN
600
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: Source word
R: Result word
NEG(160)
S
R
Calculates the 2's complement of a word of hexadecimal data.
2's complement
(Comp 1)
(R)
(S)
S: 1st source
word
R: 1st result word
NEGL(161)
S
R
Calculates the 2's complement of two words of hexadecimal data.
2's complement
(Comp 1)
(S+1, S)
(R+1, R)
S: Source word
R: 1st result word
SIGN(600)
S
R
Expands a 16-bit signed binary value to its 32-bit equivalent.
D+1
D
D = Contents of S
MSB = 0:
0000 Hex
MSB = 1:
FFFF Hex
S
MSB
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...