2-2-5
Comparison Instructions
Instruction
Symbol/Operand
Mnemonic
Code
Symbol Compari-
Symbol & options
son (Unsigned)
LD, AND, OR + =,
S
<>, <, <=, >, >=
S
300 (=)
305 (<>)
310 (<)
S
: Comparison
1
315 (<=)
data 1
320 (>)
S
: Comparison
2
325(>=)
data 2
Symbol Compari-
S
: Comparison
1
son (Double-
data 1
word, unsigned)
S
: Comparison
2
LD, AND, OR + =,
data 2
<>, <, <=, >, >= +
L
301 (=)
306 (<>)
311 (<)
316 (<=)
321 (>)
326 (>=)
Symbol Compari-
S
: Comparison
1
son (Signed)
data 1
LD, AND, OR + =,
S
: Comparison
2
<>, <, <=, >, >=
data 2
+S
302 (=)
307 (<>)
312 (<)
317 (<=)
322 (>)
327 (>=)
Symbol Compari-
S
: Comparison
1
son (Double-
data 1
word, signed)
S
: Comparison
2
LD, AND, OR + =,
data 2
<>, <, <=, >, >=
+SL
303 (=)
308 (<>)
313 (<)
318 (<=)
323 (>)
328 (>=)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
*1
: Not supported by CS1D CPU Units for Duplex-CPU Systems.
Symbol comparison instructions (unsigned) compare two values
(constants and/or the contents of specified words) in 16-bit binary
data and create an ON execution condition when the comparison
1
condition is true. There are three types of symbol comparison
instructions, LD (LOAD), AND, and OR.
2
LD
<
AND
OR
<
Symbol comparison instructions (double-word, unsigned) compare two
values (constants and/or the contents of specified double-word data) in
unsigned 32-bit binary data and create an ON execution condition when
the comparison condition is true. There are three types of symbol com-
parison instructions, LD (LOAD), AND, and OR.
Symbol comparison instructions (signed) compare two values (con-
stants and/or the contents of specified words) in signed 16-bit binary (4-
digit hexadecimal) and create an ON execution condition when the com-
parison condition is true. There are three types of symbol comparison
instructions, LD (LOAD), AND, and OR.
Symbol comparison instructions (double-word, signed) compare two
values (constants and/or the contents of specified double-word data) in
signed 32-bit binary (8-digit hexadecimal) and create an ON execution
condition when the comparison condition is true. There are three types
of symbol comparison instructions, LD (LOAD), AND, and OR.
2. Summary of Instructions
Function
ON execution condition when
comparison result is true.
ON execution condition
when comparison result
is true.
<
ON execution condition when
comparison result is true.
Location
Page
Execution
condition
LD: Not
249
required
AND, OR:
Required
2
LD: Not
249
required
AND, OR:
Required
LD: Not
249
required
AND, OR:
Required
LD: Not
249
required
AND, OR:
Required
45
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers