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

The ATREAD procedure I/O status codes listed in Table 19–4 may be returned to the<br />

caller in the IO_STATUS field of the ATREAD packet.<br />

Table 19–4. SAR$: ATREAD Procedure IO_STATUS Status List<br />

Octal Code Status<br />

0 Normal I/O status.<br />

01 to 040 See Table C–2, I/O Status Codes, Exec ER <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong><br />

for an explanation of the I/O status codes.<br />

19.2. ATREAD Function/MASM Interface<br />

The SAR$ ATREAD function writes a symbolic image to the current output stream and<br />

reads a symbolic image from the current input stream.<br />

The SAR$ ATREAD procedures can be called directly from MASM. The SAR$ data<br />

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

The element SAR$PROCS contains these PROCs.<br />

19.2.1. ATREAD Packet and Data Area Description<br />

The SAR$ READ function requires an ATREAD packet and data area for the INITIALIZE-<br />

ATREAD and ATREAD calls.<br />

The S$ARATRDEF PROC generates the EQUFs defining the ATREAD packet fields. The<br />

word length of the MASM ATREAD packet and data area is at label SA$PKTWLEN<br />

defined by the S$ARATRDEF PROC (the current length is 61 words).<br />

19.2.1.1. Required Information for ATREAD Procedures<br />

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

values:<br />

SA$PKTVER<br />

The ATREAD packet data structure version. The current version is equal to the label<br />

SA$CURVER defined by the S$ARATRDEF PROC.<br />

SA$IMGBUF<br />

The address of the image buffer which ATREAD uses to construct images to be<br />

written out and to read input images into.<br />

SA$IMGBUFL<br />

The length in words of the image buffer.<br />

7833 1733–004 19–13

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

Saved successfully!

Ooh no, something went wrong!