144
Text String Processing Instructions Section 3-31
3-31 Text String Processing Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
MOV STRING
MOV$
@MOV$
664
Output
Required
CONCATENATE
STRING
+$
@+$
656
Output
Required
GET STRING
LEFT
LEFT$
@LEFT$
652
Output
Required
GET STRING
RIGHT
RGHT$
@RGHT$
653
Output
Required
GET STRING
MIDDLE
MID$
@MID$
654
Output
Required
S: 1st source
word
D: 1st destination
word
MOV$(664)
S
D
Transfers a text string.
S1: Text string 1
S2: Text string 2
D: First
destination word
+$(656)
S1
S2
D
+
Links one text string to another text string.
S1: Text string
first word
S2: Number of
characters
D: First
destination word
LEFT$(652)
S1
S2
D
→→
Fetches a designated number of characters from the left (beginning) of a text
string.
S1: Text string
first word
S2: Number of
characters
D: First
destination word
RGHT$(653)
S1
S2
D
Reads a designated number of characters from the right (end) of a text string.
00
S1: Text string
first word
S2: Number of
characters
S3: Beginning
position
D: First
destination word
MID$(654)
S1
S2
S3
D
→→
Reads a designated number of characters from any position in the middle of a
text string.