A-107
Appendices
CJ2 CPU Unit Software User’s Manual
A-2 Instruction Execution Times and Number of Steps
App
A-2-32 Text String Processing Instructions
Loop Control LEND (exe-
cution condi-
tion)
810 1 4.2 8.6 Do not loop (input
condition ON)
3.9 6.5 Loop (input condi-
tion OFF)
LEND (bit
address)
810 2 6.7 10.4 Do not loop (bit ON)
6.6 8.2 Loop (bit OFF)
Loop Control (NOT) LEND NOT
(bit address)
810 2 6.7 10.9 Do not loop (bit OFF)
6.6 8.2 Loop (bit ON)
A-2-32 Text String Processing Instructions
Instruction Mnemonic FUN No.
Length
(steps)
ON execution time (µs)
Conditions
CJ2H
CPU6@(-EIP)
CJ2M-CPU@@
MOV STRING MOV$ 664 3 31.5 58.3 Transferring 1 char-
acter
*1
CONCATENATE
STRING
+$ 656 4 56 104 1 character + 1 char-
acter
*1
GET STRING LEFT LEFT$ 652 4 33.5 62.2 Retrieving 1 charac-
ter from 2 charac-
ters
*1
GET STRING RIGHT RGHT$ 653 4 33.4 62.1 Retrieving 1 charac-
ter from 2 charac-
ters
*1
GET STRING MIDDLE MID$ 654 5 32.3 60.8 Retrieving 1 charac-
ter from 3 charac-
ters
*1
FIND IN STRING FIND$ 660 4 30.3 56.3 Searching for 1 char-
acter from 2 charac-
ters
*1
STRING LENGTH LEN$ 650 3 14.0 24.9 Detecting 1 charac-
ter
*1
REPLACE IN STRING RPLC$ 661 6 110 213 Replacing the first of
2 characters with 1
character
*1
DELETE STRING DEL$ 658 5 45.6 86.8 Deleting the leading
character of 2 char-
acters
*1
EXCHANGE STRING XCHG$ 665 3 40.3 75.4 Exchanging 1 char-
acter with 1 charac-
ter
*1
CLEAR STRING CLR$ 666 2 15.9 28.3 Clearing 1 charac-
ter
*1
INSERT INTO
STRING
INS$ 657 5 85 162 Inserting 1 character
after the first of 2
characters
*1
Instruction Mnemonic FUN No.
Length
(steps)
ON execution time (µs)
Conditions
CJ2H
CPU6@(-EIP)
CJ2M-
CPU@@