Omron SYSMAC CS/CJ Series Programming Manual page 121

Table of Contents

Advertisement

Conversion Instructions
Instruction
Symbol/Operand
Mnemonic
Code
2'S COMPLE-
NEG(160)
MENT
NEG
@NEG
160
S: Source word
R: Result word
DOUBLE 2'S
COMPLEMENT
NEGL(161)
NEGL
@NEGL
161
S: 1st source
word
R: 1st result word
16-BIT TO 32-BIT
SIGNED BINARY
SIGN(600)
SIGN
@SIGN
600
S: Source word
R: 1st result word
100
Calculates the 2's complement of a word of hexadecimal data.
S
R
Calculates the 2's complement of two words of hexadecimal data.
S
R
(S+1, S)
Expands a 16-bit signed binary value to its 32-bit equivalent.
S
S
R
MSB = 1:
FFFF Hex
D+1
Function
2's complement
(Complement + 1)
(S)
(R)
2's complement
(Complement + 1)
(R+1, R)
MSB
MSB = 0:
0000 Hex
D
D = Contents of S
Section 3-10
Location
Execution
condition
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents