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.

GETPSF$–Get a Scratch File Routine<br />

10.2. MASM Interface<br />

The next two subsections describe the packet and the calling sequence.<br />

10.2.1. Packet<br />

On a call to the relocatable version of the GETPSF$ routine, the calling program passes<br />

the number of files or the specific PSF file number to be assigned to the run.<br />

For a call to the common bank version of the routine, the calling program must also<br />

provide the address of a 13-word data area that is used by the GETPSF$ routine. This is<br />

a scratch data area that does not have to be initialized by the caller and can be reused by<br />

the calling program when control returns from GETPSF$. The packet must be in a writeenabled<br />

bank of the calling program. The bank must also be based when the call to the<br />

GETPSF$ routine is made.<br />

For more information on the different methods of calling the <strong>SYSLIB</strong> routines, see<br />

Section 3.<br />

10.2.2. Calling Sequence<br />

The GETPSF$ routine is called by the MASM procedure G$ETPSF. This procedure can<br />

be used to generate the calling sequence for the relocatable version, the common bank<br />

version, or the common bank version using the Auto Switch calling sequence.<br />

Calling Format<br />

G$ETPSF[,t] func-code [,n] [pkt-addr]<br />

error return<br />

normal return<br />

Parameters<br />

t<br />

Call the relocatable version. This parameter is optional and may be omitted. CB or<br />

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

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

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

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

10–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!