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.

INFOR$–Internal Format Table Interface Routines<br />

12.3.1. RINF$–Read INFOR Table<br />

The RINF$ routine performs a read operation to read the INFOR table and store it in an<br />

area that the calling program supplies. The RINF$ routine must be called before the<br />

SINF$, the SELT$, or the DUSE$ routines may be used.<br />

INFOR$ is a word defined externally by the INFOR$ routine. If it is zero, then the RINF$<br />

routine executes a read instruction and reads the INFOR table into the area indicated by<br />

parameter start-addr. If INFOR$ is not zero, RINF$ assumes that the INFOR table has<br />

already been read and immediately does a normal return to the caller. The calling<br />

program must set INFOR$ to zero if the calling program is reusable and is making<br />

multiple calls to the RINF$ routine.<br />

The RINF$ routine is called by the MASM procedure I$NFOR. This procedure can be<br />

used to generate the calling sequence for the relocatable version of the RINF$ routine,<br />

the common bank version of the routine, or the common bank version of the routine<br />

using the Auto Switch calling sequence. Section 3 describes the advantages and<br />

disadvantages of using the different types of calls.<br />

Calling Format<br />

I$NFOR[,t] ‘RINF$’[,word-count,start-addr] [packet]<br />

error return<br />

normal return<br />

Parameters<br />

t<br />

RINF$<br />

Type of call to RINF$. This parameter is optional and may be omitted. CB or A, if<br />

specified, must be enclosed by apostrophes.<br />

blank Call the relocatable version of RINF$. This is the default if t is omitted.<br />

'CB' Call the common bank version of RINF$.<br />

'A' Call the common bank version of RINF$ using the Auto Switch method.<br />

RINF$ is the function code which specifies which of the INFOR$ routines the<br />

procedure I$NFOR should call. It must be enclosed by apostrophes.<br />

word-count<br />

Length in words of the memory area provided by the caller into which the RINF$<br />

routine is to store the INFOR table. If this parameter is omitted, the RINF$ routine<br />

uses the value in H1 of register A0 as the length.<br />

12–4 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!