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.

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

13.2. Calling Sequence<br />

The MFDSP$ routine is called by the MASM procedure M$FDSP. M$FDSP is used to<br />

generate the calling sequence for the relocatable version, the common bank version, or<br />

the common bank version using the Auto Switch calling sequence. Section 3 describes<br />

the advantages and disadvantages of using the different types of calls.<br />

Calling Format<br />

M$FDSP[,t] pkt-length,pkt-addr,func-code,device-table-size<br />

error return<br />

normal return<br />

Parameters<br />

t<br />

Type of call to MFDSP$. This parameter is optional and may be omitted. CB or A, if<br />

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

pkt-length<br />

blank Call the relocatable version of MFDSP$. This is the default if t is<br />

omitted.<br />

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

'A' Call the common bank version of MFDSP$ using the Auto Switch<br />

method.<br />

The length of the packet provided by the calling program to the MFDSP$ routine.<br />

In general, a packet length of 4400 words is needed by MFDSP$. If this parameter<br />

is omitted, then the routine uses the value in H1 of register A0 as the packet length.<br />

The packet length parameter can be given as an actual number, a tag that has been<br />

equated to a number, or the address of a word that contains the packet length<br />

(see 13.4.).<br />

pkt-addr<br />

The address of the packet provided by the calling program to the MFDSP$ routine.<br />

The first two words of the packet must contain the internal file name (12 Fieldata<br />

characters, left-justified and space-filled format) of the file created by using the<br />

ER MSCON$. The rest of the packet is used by the MFDSP$ routine for I/O buffers<br />

and internal I/O packets and tables. If this parameter is omitted, then the routine<br />

uses the value in H2 of register A0 as the address of the packet.<br />

13–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!