Omron CJ2 CPU UNIT SOFTWARE User Manual page 514

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
Code
2'S COMPLE-
NEG
160
MENT
@NEG
DOUBLE 2'S
NEGL
161
COMPLEMENT
@NEGL
16-BIT TO 32-
SIGN
600
BIT SIGNED
@SIGN
BINARY
DATA
MLPX
076
DECODER
@MLPX
A-30
Symbol/Operand
Calculates the 2's complement of a word
NEG(160)
of hexadecimal data.
S
R
(S)
S: Source word
R: Result word
Calculates the 2's complement of two words
NEGL(161)
of hexadecimal data.
S
R
(S+1, S)
S: 1st source word
R: 1st result word
Expands a 16-bit signed binary value to its
SIGN(600)
32-bit equivalent.
S
R
S: Source word
MSB = 1:
R: 1st result word
FFFF Hex
Reads the numerical value in the specified digit (or byte)
MLPX(076)
in the source word, turns ON the corresponding bit in the
result word (or 16-word range), and turns OFF all other
S
bits in the result word (or 16-word range).
C
4-to-16 bit conversion
R
S: Source word
C: Control word
R: 1st result word
R
R+1
8-to-256 bit conversion
R+1
R+14
R+15
R+16
R+17
R+30
R+31
Function
2's complement
(Complement + 1)
(R)
2's complement
(Complement + 1)
(R+1, R)
MSB
S
MSB = 0:
0000 Hex
D+1
D
D = Contents of S
C
l=1 (Convert 2 digits.)
n=2 (Start with second digit.)
4-to-16 bit decoding
(Bit m of R is turned ON.)
C
l=1 (Convert 2 bytes.)
n=1 (Start with first byte.)
8-to-256 bit decoding
(Bit m of R to R+15 is turned ON.)
Two 16-word ranges
are used when l
specifies 2 bytes.
CJ2 CPU Unit Software User's Manual
Execution
Location
condition
Output
Required
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents