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.

SAR$ WRITE<br />

18.2.1.4. WRITE Packet Definition PROC<br />

The S$ARWPDEF PROC generates the EQUFs to define the WRITE packet. The calling<br />

program may optionally attach an X-register and a B-register to these EQUFs. This<br />

allows the calling program to allocate storage space for the WRITE packet either<br />

statically at assembly time or dynamically at execution time. The calling program may<br />

display the EQUF labels by setting the display-flag parameter on the PROC call. This<br />

PROC also generates EQUs defining the WRITE packet current version and word length<br />

at labels SW$CURVER and SW$PKTWLEN, respectively.<br />

Calling Format<br />

S$ARWPDEF x-reg,b-reg,dispflg<br />

Parameters<br />

x-reg<br />

The X-register to be attached to the WRITE packet EQUFs. If it is omitted, no<br />

X-register is attached to the EQUFs.<br />

b-reg<br />

The B-register to be attached to the WRITE packet EQUFs. If it is omitted, no<br />

B-register is attached to the EQUFs.<br />

dispflg<br />

A flag to display a table of the WRITE packet EQUFs. If it is set to 'D', the field<br />

names are displayed; otherwise, the field names are not displayed.<br />

Example<br />

$ASCII<br />

$INCLUDE ‘MAXR$’<br />

S$ARWPDEF X4,B6,‘D’<br />

The PROC call S$ARWPDEF generates EQUFs using registers X4 and B6 and displays a<br />

description of each packet field.<br />

18–28 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!