A-1-11 Logic Instructions - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
Code
ASCII TO SIX-
NUM16
606
TEEN-DIGIT-
@NUM16
NUMBER
A-1-11
Logic Instructions
Instruction
Mnemonic
LOGICAL AND
ANDW
034
@ANDW
DOUBLE
ANDL
610
LOGICAL AND
@ANDL
LOGICAL OR
ORW
035
@ORW
CJ2 CPU Unit Software User's Manual
Symbol/Operand
Converts 16 characters of ASCII data to a 16-digit hexadecimal
STR16(606)
number.
S
D
S: ASCII text
D: Numeric
ASCII
Hexadecimal
Code
Symbol/Operand
ANDW(034)
I
1
I
2
R
I
: Input 1
1
I
: Input 2
2
R: Result word
ANDL(610)
I
1
I
2
R
I
: Input 1
1
I
: Input 2
2
R: Result word
ORW(035)
I
1
I
2
R
I
: Input 1
1
I
: Input 2
2
R: Result word
Function
15
8
7
0
30
31
S
32
33
S+1
34
35
S+2
S+3
36
37
38
39
S+4
S+5
41
42
S+6
43
44
S+7
45
46
15
12
11
8
7
4
3
0
D
C
D
E
F
8
9
A
B
D+1
4
5
6
7
D+2
0
1
2
3
D+3
Function
Takes the logical AND of corresponding bits
in single words of word data and/or constants.
→R
I
. I
1
2
I
I
R
1
2
1
1
1
1
0
0
1
0
0
0
0
0
Takes the logical AND of corresponding bits in
double words of word data and/or constants.
+1) → (R, R+1)
(I
I
+1). (I
I
?
1
,
1
2
,
2
I
I
+1
I
I
+1
R, R+1
1
,
1
2
,
2
1
1
1
1
0
0
1
0
0
0
0
0
Takes the logical OR of corresponding bits in
single words of word data and/or constants.
→R
I
+ I
2
1
I
I
R
1
2
1
1
1
1
0
1
0
1
1
0
0
0
Appendices
Execution
Location
condition
Output
Required
Execution
Location
condition
Output
Required
Output
Required
Output
Required
A-35

Advertisement

Table of Contents
loading

Table of Contents