Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual522629-013
5-248
FORMATDATA[X] Procedure
<3> P-Relative (iformat array)
0 The
iformat array address is G-relative.
1 The
iformat array address is P-relative.
<2> List-directed (refer to the Guardian Programmer’s Guide for information
about list-directed operations)
0 Apply the format-directed operation.
1 Apply the list-directed operation.
<1:0> Reserved, specify 0
Considerations
A passed P-relative iformat array must be in the same code segment as the call.
variable-list array form
The 4- to 7-word entry for each array or variable consists of the following items:
Word FORMATDATA Contents FORMATDATAX Contents
+--------------------+ +--------------------+
[0] | dataptr | | |
|--------------------| |-- dataptr --|
[1] | datatype | | |
|--------------------| |--------------------|
[2] | databytes | | datatype |
|--------------------| |--------------------|
[3] | dataoccurs | | databytes |
|--------------------| |--------------------|
[4] | nullptr (optional) | | dataoccurs |
+--------------------+ |--------------------|
[5] | |
|- nullptr (optional) -|
[6] | |
+--------------------+
dataptr
is the address of the array or variable. For FORMATDATA, dataptr is a byte
address for data types 0, 1, 12-15, and 17, and is a word address for other types.
For FORMATDATAX,
dataptr is an extended address.