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 />

MFDSP$–Master File Directory Service Package<br />

The function code may be given as an actual number, a tag that has been equated to<br />

an actual number, or the address of a word that contains the number. The first time<br />

the MFDSP$ routine is called, it must be called with a function code of zero or one.<br />

If the MFD file was created using the DGET$ function on the ER MSCON$, then use<br />

zero on the MFDSP$ call. If the MFD file was created using the DGET$P function on<br />

the ER MSCON$, then a function code of one must be used on the MFDSP$ call.<br />

If this parameter is omitted, the routine uses the value in H2 of register A1 as the<br />

function code. If device-table-size is specified as the fourth parameter then this<br />

parameter is required.<br />

The function codes for MFDSP$ are the following:<br />

0 Initialize for DGET$ file and return the address of the first lead item.<br />

1 Initialize for DGETP$ file and return the address of the first main item.<br />

2 Get next lead item (DGET$ file only).<br />

3 Get sector 1 of lead item (DGET$ file only).<br />

4 Get next main item.<br />

5 Get next sector of main item.<br />

6 Get first DAD table associated with the main item returned by function 4 or 5.<br />

7 Get next DAD table.<br />

8 Find item whose MFD address is in A2.<br />

9 Convert MFD address in A2 to DGET$ file relative address in A3.<br />

10 Get a ER MSCON$ (DGET$) copy of the MFD and initialize (function code 0)<br />

device-table-size<br />

If this parameter is omitted, the default maximum size of the device number table is<br />

1,000 words. The device table is a buffer built by MFDSP$ to contain a 1-word entry<br />

for each mass storage device configured on the system. Entries are located in the<br />

table according to the device number or LDAT index (see the Exec System Software<br />

Administration <strong>Reference</strong> <strong>Manual</strong> (subsection 2.2) for more information on the LDAT<br />

index). This means that if a device is numbered 100, its entry will occupy the 101 st<br />

word of the table (entries begin at the second word of the table). If this parameter is<br />

included, the ‘func-code’ parameter must also be included.<br />

The default maximum size of the device number table is 1,000 words. If your system<br />

includes devices numbered greater than 999, you can use this parameter to increase<br />

the table size to a maximum of 4,096 words. The requested word size of the table<br />

should be at least the highest device number plus 1. A device-table-size value of<br />

1000 or less will use the current table size of 1,000 words. The pkt-length<br />

(parameter 1) should also be increased when a larger device table size is requested<br />

by the fourth parameter. The device table size parameter is only used by functions<br />

that initialize the device table (functions 0, 1, and 10.) The value of this parameter is<br />

passed in H1 of register A1.<br />

7833 1733–004 13–3

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

Saved successfully!

Ooh no, something went wrong!