![Omron CJ1G-CPUxx Instructions Manual Download Page 75](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491075.webp)
54
Instruction Functions
Section 2-2
BINARY-TO-BCD
BCD
@BCD
024
Output
Required
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL
@BCDL
059
Output
Required
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
Page
S: Source word
R: Result word
BCD(024)
S
R
(BCD)
(BIN)
R
Converts a word of binary data to a word of BCD data.
S: 1st source
word
R: 1st result word
BCDL(059)
S
R
(BIN)
(BCD)
(BIN)
(BCD)
R
R+1
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
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)
(S)
(R)
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-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...