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.2. MASM SAR$ COM Procedure Buffers and Tables<br />

SAR$ COM<br />

All buffers and tables must be provided by the calling program. The buffers and tables<br />

for the COM function are similar to the buffers and tables for the READ and WRITE<br />

functions. See 17.1.2 and 18.1.2 for details on the buffers and tables. Note that for the<br />

COM function, the image buffer is not used if the input and output images do not have<br />

character attributes. The recommended lengths for the buffers and tables are equated<br />

to labels in the S$ARCOMDEF PROC. These lengths and labels are listed in Table 20–4.<br />

Table 20–4. SAR$: MASM COM Buffer and Table Lengths<br />

Label Value<br />

SC$IMGBUFDL (Image buffer word length) 25<br />

SC$TEXBUFDL (Text buffer byte length) 80<br />

SC$ATTRIBDL (Attribute table word length) 10<br />

SC$SELLSTDL (Select list byte length) 4<br />

20.2.3. SAR$ MASM COM Procedure Call (S$ARCOM)<br />

The MASM procedure for the SAR$ COM function is S$ARCOM. The S$ARCOM PROC<br />

constructs an image from the output text and output attributes and writes the image to<br />

the operator's console. If input is solicited from the operator, an image is read from the<br />

console, and the character text and attributes of the image are returned to the caller.<br />

Initial Conditions<br />

The calling program sets the following parameters in the COM packet to appropriate<br />

values before calling the S$ARCOM PROC:<br />

• Required parameters (described in 20.2.1.1)<br />

SC$PKTVER<br />

SC$ITEXTB<br />

SC$OTEXTB<br />

SC$ITEXTBL<br />

SC$OTEXTBL<br />

7833 1733–004 20–17

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

Saved successfully!

Ooh no, something went wrong!