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.

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

If the parameter is an address, it must be in the same bank as the packet generated by<br />

the EM$BSPPKT PROC. All addresses are an 18-bit offset from zero.<br />

The buffer for file table index (FTI) is contained in the packet generated by the<br />

EM$BSPPKT PROC. The first word of the FTI is identified by the externalized label<br />

EM$FTI. The value of EM$FTI is the offset from zero to the start of the FTI.<br />

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

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

is<br />

0 Normal return from BSP$<br />

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

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

3 Illegal value given for the table type (TBLTYPE field)<br />

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

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

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

Packet Generation<br />

The EM$BSPPKT PROC generates the packet for the Extended Mode interface to BSP$.<br />

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

Calling Sequence:<br />

label EM$BSPPKT buflen [,filename]<br />

where:<br />

buflen<br />

The word length of the buffer used to hold the program file table. The length should<br />

be 28*(5+4n), where n is a positive integer. The minimum length is 252 words. For<br />

maximum efficiency, the buffer length should be large enough to contain the entire<br />

table, including the size of entries to be added.<br />

filename<br />

The12-Fieldata-character internal file name of the file to be accessed (in quotes).<br />

This parameter is optional; if omitted, the caller must place the internal file name at<br />

location EM$FTI (an externalized label from this PROC).<br />

The packet generated by the EM$BSPPKT PROC contains the buffers for the FTI and the<br />

program file tables. It is not necessary to allocate additional space for them.<br />

I–8 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!