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.

func-code<br />

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

The function code tells GETPSF$ how to treat the parameter n. If the function code<br />

is set to GETPSF$, then the routine assigns scratch files in sequence beginning with<br />

file PSF$ and continuing to file PSFn$, where n is the number given as the second<br />

parameter.<br />

If the function code is set to GETPSFN$, then only one file is assigned by GETPSF$.<br />

That file is PSF$ if n is omitted or set to 0. If n is set to a value of 1 to 9, then the file<br />

PSFn$ is assigned. The function code must be enclosed by apostrophes. The only<br />

allowable function codes for GETPSF$ are<br />

GETPSF$<br />

Assign files PSF$ to PSFn$. If n is zero or is omitted, only file PSF$ is assigned.<br />

GETPSFN$<br />

Assign only file PSFn$. If n is zero or is omitted then file PSF$ is assigned.<br />

Note: Any other value entered for the function code parameter on the G$ETPSF<br />

procedure call causes MASM to generate an E flag on that line and print the error<br />

message.<br />

n<br />

ILLEGAL G$ETPSF FUNCTION<br />

The parameter n can be set to an integer value of 0 through 9. It may be given as an<br />

actual number, a tag that has been equated to a number or the address of a word<br />

that contains the number. The parameter n defines the highest numbered PSF file<br />

to be assigned if a group of files is requested (that is, if the function code is set to<br />

GETPSF$). Otherwise, n defines the particular PSF file to be assigned when the<br />

function code is set to GETPSFN$.<br />

If n is set to 2 and the function code is GETPSF$, then files PSF$, PSF1$, and PSF2$<br />

are assigned. If n is set to 2 and the function code is GETPSFN$, then only one file,<br />

PSF2$, is assigned.<br />

pkt-addr<br />

Address of the packet provided by the calling program to the GETPSF$ routine. This<br />

parameter is needed only if the parameter t has been set to 'A' or 'CB'. If t is set to<br />

'A' or 'CB', then this parameter must be included or the address of the packet must<br />

already be in register A1. If the parameter t is blank, that is, if the call is to the<br />

relocatable version of the GETPSF$ routine, then this parameter may be omitted.<br />

However, including it on the call does not cause any problems.<br />

If only the function code is given on the GETPSF$ procedure call, GETPSF uses the value<br />

in register A0 for n. If the parameter t has been set to A or CB, then the value in register<br />

A1 is used as the address of the packet required by the common bank routine.<br />

7833 1733–004 10–3

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

Saved successfully!

Ooh no, something went wrong!