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.

19.2.2. MASM ATREAD Procedures Buffers and Tables<br />

SAR$ ATREAD<br />

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

lengths for the buffers and tables are equated to labels in the S$ARATRDEF PROC.<br />

These lengths and labels are listed in Table 19–5. The buffers and tables for the<br />

ATREAD 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.<br />

Table 19–5. SAR$: MASM ATREAD Buffer and<br />

Table Lengths<br />

Label Value<br />

SA$IMGBUFDL (Image buffer word length) 63<br />

SA$TEXBUFDL (Text buffer byte length) 132<br />

SA$ATTRIBDL (Attribute table word length) 40<br />

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

19.2.3. ATREAD Procedures Called from MASM<br />

The MASM procedures for the ATREAD function are<br />

• S$ARINITATR (initialize ATREAD)<br />

• S$ARATREAD (call ATREAD)<br />

• S$ARRSATR (reset ATREAD)<br />

19.2.3.1. Initialize ATREAD Procedure Call (S$ARINITATR)<br />

The ATREAD packet and data area must be initialized before any calls are made to<br />

ATREAD. The S$ARINITATR PROC performs the ATREAD packet initialization.<br />

Initial Conditions<br />

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

values before calling S$ARINITATR:<br />

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

SA$PKTVER<br />

SA$IMGBUF<br />

SA$IMGBUFL<br />

7833 1733–004 19–19

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

Saved successfully!

Ooh no, something went wrong!