Publication 1762-RM001C-EN-P
ASCII Instructions 20-5
String (ST) Data File
File Description
The string data file is used by the ASCII instructions to store ASCII
character data. The ASCII data can be accessed by the source and
destination operands in the ASCII instructions. The string data file can also
be used by the copy (COP) and move (MOV, MVM) instructions.
String files consist of 42-word elements. One string file element is shown
below. You can have up to 256 of these elements in the string file.
Addressing String Files
The addressing scheme for the string data file is shown below.
Table 20.1 String Data File Structure
String Element
Bit 15141312111009080706050403020100
Word upper byte lower byte
0 String Length - number of characters (range is from 0 to 82)
1 character 0 character 1
2 character 2 character 3
↓↓ ↓
40 character 78 character 79
41 character 80 character 81
Format Explanation
ST String file
STf:e.s f File number The valid file number range is from 3 to 255.
: Element delimiter
e Element number The valid element number range is from 0 to 255.
Each element is 42 words in length as shown in Table 20.1.
. Subelement delimiter
s Subelement number The valid subelement number range is from 0 to 41. You can also specify .LEN for word 0.
The subelement represents a word address.
Examples: ST9:2
ST17:1.LEN
String File 9, Element 2
String File 17, Element 1, LEN Variable