A-1-32 Text String Processing Instructions - Omron CJ2 CPU UNIT SOFTWARE User Manual

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

Advertisement

Appendices
Instruction
Mnemonic
Code
LEND
LEND
810
LEND NOT
LEND NOT
810
A-1-32
Text String Processing Instructions
Instruction
Mnemonic
Code
MOV
MOV$
664
STRING
@MOV$
CONCATE-
+$
656
NATE
@+$
STRING
GET STRING
LEFT$
652
LEFT
@LEFT$
A-74
Symbol/Operand
LEND (810)
If the operand bit is OFF for LEND(810) (or ON for LEND(810)
NOT), execution of the loop is repeated starting with the next
B
instruction after LOOP(809). If the operand bit is ON for
LEND(810) (or OFF for LEND(810) NOT), the loop is ended
and execution continues to the next instruction after
B: Bit operand
LEND(810) or LEND(810) NOT.
Note The status of the operand bit would be
LEND(810) NOT
LEND(810) or LEND(810) NOT specifies the end of the loop.
When LEND(810) or LEND(810) NOT is reached, program execu-
tion will loop back to the next previous LOOP(809) until the oper-
B: Bit operand
and bit for LEND(810) or LEND(810) NOT turns ON or OFF
(respectively) or until the execution condition for LEND(810) turns
ON.
Symbol/Operand
Transfers a text string.
MOV$(664)
S
D
S: 1st source word
D: 1st destination
word
Links one text string to another text string.
+$(656)
S1
S2
D
S1: Text string 1
S2: Text string 2
D: 1st
destination word
Fetches a designated number of characters from the left
LEFT$(652)
(beginning) of a text string.
S1
S2
D
S1: Text string first
word
S2: Number of
characters
D: 1st destination
word
Function
Operand
Operand
Operand
bit ON
bit OFF
bit OFF
Loop repeated
reversed for LEND(810) NOT.
Function
+
CJ2 CPU Unit Software User's Manual
Execution
Location
condition
Block pro-
Required
gram
Operand
bit OFF
Block pro-
Required
gram
Execution
Location
condition
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents