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.

20.2. SAR$ COM Function/MASM Interface<br />

The SAR$ COM function writes a symbolic image to the operator's console and<br />

optionally reads a symbolic image from the operator's console.<br />

SAR$ COM<br />

The SAR$ COM procedure is callable directly from MASM. The SAR$ data structure<br />

definitions and procedure calls are defined by MASM procedures (PROCs). The element<br />

SAR$PROCS contains these PROCs.<br />

20.2.1. SAR$ COM Packet and Data Area Description<br />

The SAR$ COM function requires a SAR$ COM packet and data area for the COM<br />

procedure call. The S$ARCOMDEF PROC generates the EQUFs defining the COM<br />

packet fields. The word length of the SAR$ MASM COM packet and data area is at label<br />

SC$PKTWLEN defined by the S$ARCOMDEF PROC (the current length is 57 words).<br />

20.2.1.1. Required Information for SAR$ COM Procedure<br />

The calling program must set the following fields of the COM packet to appropriate<br />

values:<br />

SC$PKTVER<br />

The SAR$ COM packet data structure version. The current version is equal to the<br />

label SC$CURVER defined by the S$ARCOMDEF PROC.<br />

SC$OTEXTB<br />

The address of the output text buffer which contains the character text of the image<br />

that the SAR$ COM function writes out.<br />

SC$OTEXTBL<br />

The length in 9-bit bytes of the character text in the text buffer. This is the number<br />

of characters that the SAR$ COM function writes out.<br />

SC$ITEXTB<br />

The address of the input text buffer which contains the character text of the image<br />

that the SAR$ COM function reads in. This field is not necessary if SC$ITEXTBL is<br />

set to zero.<br />

SC$ITEXTBL<br />

The length in 9-bit bytes of the input text buffer; this is the maximum number of<br />

characters that the SAR$ COM function will read in. If this field is set to zero, no<br />

input is solicited from the operator's console.<br />

7833 1733–004 20–11

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

Saved successfully!

Ooh no, something went wrong!