18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BSP$-Program File Basic Service Package<br />

Parameters<br />

address-of-FCT<br />

Address of data area for BSP$. This data area requires 43 words. Words 0 and 1<br />

must contain an internal file name that is in the Fieldata character set, left-justified,<br />

and space-filled. This data area is referred to as the FCT, and must not be modified<br />

between calls to BSP$ after it has been initialized by RFTI$.<br />

Returns<br />

error return<br />

A0 has one of the following values:<br />

02<br />

04<br />

05<br />

07<br />

010<br />

File is not a program file.<br />

File is not assigned to the run or is not a sector formatted mass storage file.<br />

Program file does not contain a supported revision level.<br />

No starting sector address for large program file table.<br />

Program file does not contain a valid size indicator.<br />

07700000000nn<br />

normal return<br />

nn is error status from ER IOW$.<br />

The FTI is stored in the file control table starting at word FCT+6. The FTI is initialized<br />

in the FCT if an I/O status 05 was returned as RFTI$ attempted to read from the file<br />

name specified in words 0 and 1 of the FCT. If the caller is going to be adding an<br />

element to the file, the next sector location for writing the text of the element is<br />

found at word FCT + 7.<br />

On return, A1, S6 (bits 30 through 35) has the FTI size indicator. A PF will have a<br />

value of 0. An LPF will have a value of 4. A1, bit 29 (octal 0100) is the large-element<br />

text-allowed bit. Since RFTI$ can only be used to access a PF or LPF, bit 29 is<br />

always zero (clear). A1 bits 0 through 28 are always zero.<br />

5–4 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!