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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

func<br />

param<br />

The code for which GETPSF$ function to perform:<br />

1 Assign n program scratch files<br />

2 Assign a specific program scratch file<br />

An additional parameter for the following function codes:<br />

1 The number of files requested (from 1 to 10)<br />

2 The number of the specific file requested<br />

Extended Mode Interface to <strong>SYSLIB</strong><br />

The func and param parameters are optional. If they are omitted, EM$GETPSF uses the<br />

values contained in registers A1 and A2, respectively.<br />

EM$GETPSF returns the status of the call to GETPSF$ in the packet field CALLSTAT.<br />

The CALLSTAT field is S3 of word 2 of the packet (packet address + 1). The possible<br />

status is<br />

0 Normal return from GETPSF$<br />

1 Error return from GETPSF$, error code in field A0SAVE<br />

2 Illegal value given for the GETPSF$ function code<br />

For CALLSTAT codes 0 and 1, the contents of registers A0, A1, and A2 from GETPSF$<br />

are returned in packet fields A0SAVE, A1SAVE, and A2SAVE, respectively. These fields<br />

are at words 3, 4, and 5 of the packet.<br />

Packet Generation<br />

EM$GETPSFPKT generates the 18-word packet for the Extended Mode interface to<br />

GETPSF$. This packet is required for the EM$GETPSF PROC.<br />

Calling Sequence<br />

label EM$GETPSFPKT<br />

There are no parameters for the EM$GETPSFPKT PROC.<br />

7833 1733–004 I–11

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

Saved successfully!

Ooh no, something went wrong!