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.

Interface to Selected Extended Mode Executive Requests<br />

F.2.3. EM$TREADPKT<br />

The EM$TREADPKT PROC generates the packet for the EM$TREAD and EM$ATREAD<br />

PROCs.<br />

Calling Sequence<br />

label EM$TREADPKT outbuf,len,linespa,inbuf<br />

or<br />

label EM$ATREADPKT outbuf,len,linespa,inbuf<br />

Parameters<br />

outbuf<br />

len<br />

linespa<br />

inbuf<br />

The address (18-bit offset from zero) of the buffer containing the image to be<br />

printed.<br />

The word length of the image to be printed.<br />

The line spacing for the image to be printed (if omitted, the default is one).<br />

The address (18-bit offset from zero) of the buffer to read the input image into.<br />

The outbuf, len, linespa, and inbuf parameters may also be set at execution time.<br />

The outbuf parameter is located at word 3 of the packet (packet address + 2). The len<br />

parameter is located at S3 of word 2 of the packet, and the linespa parameter is located<br />

at T1 of word 2. The inbuf parameter is located at word 4 of the packet.<br />

The buffers must be in either the same bank that contains the packet or in a bank that is<br />

based on B15 when EM$TREAD or EM$ATREAD are called.<br />

The status word from ER TREAD$/ATREAD$ is returned in word 5 (packet address + 4)<br />

of the packet. S2 of word 5 contains an EOF flag; a non-zero value indicates an end-offile<br />

condition. S1 of word 5 contains the bit settings returned from the ER<br />

READ$/AREAD$ request (bits 35 to 30). H2 of word 5 contains the number of words<br />

read by EM$READ/EM$AREAD into the input buffer. The input buffer is not space filled<br />

if the length of the image read is shorter that the length of the input buffer.<br />

F–4 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!