121
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-32 Text String Processing Instructions
2-2-32 Text String Processing Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
MOV STRING
MOV$
@MOV$
664
Output
Required
1085
CONCATENATE
STRING
+$
@+$
656
Output
Required
1086
GET STRING
LEFT
LEFT$
@LEFT$
652
Output
Required
1088
GET STRING
RIGHT
RGHT$
@RGHT$
653
Output
Required
1088
GET STRING
MIDDLE
MID$
@MID$
654
Output
Required
1091
MOV$(664)
S
D
S: 1st source
word
D: 1st destination
word
Transfers a text string.
+$(656)
S1
S2
D
S1: Text string 1
S2: Text string 2
D: First
destination word
+
Links one text string to another text string.
→→→→
LEFT$(652)
S1
S2
D
S1: Text string
first word
S2: Number of
characters
D: First
destination word
Fetches a designated number of characters from the left (beginning)
of a text string.
RGHT$(653)
S1
S2
D
S1: Text string
first word
S2: Number of
characters
D: First
destination word
00
Reads a designated number of characters from the right (end) of a
text string.
MID$(654)
S1
S2
S3
D
S1: Text string
first word
S2: Number of
characters
S3: Beginning
position
D: First
destination word
→
→
Reads a designated number of characters from any position in the
middle of a text string.