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$ COM<br />

Example<br />

$ASCII<br />

$INCLUDE ‘MAXR$’<br />

S$ARCOMDEF X6,B3,‘D’<br />

The PROC call S$ARCOMDEF generates EQUFs using registers X6 and B3 and displays<br />

a description of each packet field.<br />

20.2.1.5. SAR$ COM Packet Generation PROC (S$ARCOMPKT)<br />

The PROC S$ARCOMPKT generates a COM packet and reserves space for an image<br />

buffer, output text buffer, output attribute table, input text buffer, and input attribute<br />

table. S$ARCOMPKT also calls the S$ARCOMDEF PROC, defining the COM packet<br />

fields.<br />

Calling Format<br />

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

The parameters for S$ARCOMPKT are the same as for the S$ARCOMDEF PROC<br />

(see 20.2.1.4).<br />

Returns<br />

The S$ARCOMPKT PROC places values in the following fields of the COM packet:<br />

SA$PKTVER SA$IMGBUF SA$IMGBUFL<br />

SA$OTEXTBL SA$OATTRT SA$ITEXTB<br />

SA$ITEXTB SA$ATTRT SA$IATTRTL<br />

All other packet fields are set to default values.<br />

The generated buffers and tables use the default lengths (see Table 20–4). The<br />

following externalized labels are used to reference the buffers and tables:<br />

SCIMGBUF Image buffer<br />

SCOTEXTB Output text buffer<br />

SCOATTRT Output attribute table<br />

SCITEXTB Input text buffer<br />

SCIATTRT Input attribute table<br />

20–16 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!