2-45
1
2
4
4
2
6
7
8
2.5 Application Instructions
2.5.11 Character string processing instructions
Table 2.28 Character String Processing Instructions (Continued)
Category
Instruction Symbol
Symbol Processing Details
Execution
Condition
Number of Basic Steps
Subset
See for Description
Hexadecimal
BIN
ASCII
ASC
•
Converts the 1-word BIN value at the
device numbers designated by (S) to
hexadecimal ASCII, and stores n
characters of them at the device numbers
designated by (D) and after.
4 - 7-227
ASCP
ASCII
Hexadecimal
BIN
HEX
• Converts n hexadecimal ASCII
characters of the device numbers
designated by (S) and after to BIN
values, and stores them at the device
numbers designated by (D).
4 - 7-229
HEXP
Character
string
RIGHT • Stores n characters from the end of a
character string designated by (S) at the
device designated by (D).
4 - 7-231
RIGHTP
LEFT • Stores n characters from the beginning
of a character string designated by (S) at
the device designated by (D).
LEFTP
MIDR
• Stores the designated number of
characters in the character string
designated by (S1) from the position
designated by (S2) at the device
designated by (D).
4 - 7-234
MIDRP
MIDW
• Stores the character string of (S1) in the
specified number to the character string
of (D) at the position specified by (S2).
MIDWP
INSTR
• Searches character string (S1) from the
nth character of character string (S2),
and stores matched positions at (D).
5 - 7-238
INSTRP
STRINS
• Inserts the character string data
specified by (S) to the (n)th character
(insert position) from the initial character
string data specified by (D).
4-
7-240
STRINSP
STRDEL
• Deletes the (n2) characters data
specified by (D) starting from the
device(insert position) specified by n1.
4-
7-242
STRDELP
Floating
decimal point
BCD
EMOD
• Converts 32-bit floating decimal point
data (S1) to BCD data with number of
decimal fraction digits designated by
(S2) , and stores at device designated
by (D).
4 - 7-244
EMODP
BCD
Floating
decimal point
EREXP
• Converts BCD data (S1) to 32-bit
floating decimal point data with the
number of decimal fraction digits
designated by (S2), and stores at device
designated by (D).
4 - 7-247
EREXPP
ASC nSD
ASCP nSD
HEX nSD
HEXP nSD
RIGHT nSD
RIGHTP nSD
LEFT nSD
LEFTP nSD
MIDR S1 S2D
MIDRP S1 S2D
MIDW S1 S2D
MIDWP S1 S2D
INSTR nS1 S2 D
INSTRP nS1 S2 D
STRINS SDn
STRINSP SDn
STRDEL Dn1n2
STRDELP Dn1n2
EMOD S1 S2 D
EMODP S1 S2 D
EREXP S1 S2 D
EREXPP S1 S2 D