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.

SDFI, SDFO–System Data Format I/O Routines<br />

The SDFINT$ entry point does not truncate images that overflow the image buffer but<br />

instead returns an error. The recommended image buffer word length is returned in<br />

register A5. To read the entire image, the calling program must place the address and<br />

word length of a larger image buffer in the packet and call SDFINT$ again. If a<br />

continuation record (051 in S1 of the ICW) causes an overflow, the image buffer will<br />

contain the part just read, and word 10 of the FCT will contain an ICW for the portion of<br />

the image returned in the image buffer. To continue reading the image, the calling<br />

program must call SDFINT$ again. SDFI will return the next portion of the image.<br />

SDFI processes continuation records (051 in S1 of the ICW) and does not return them to<br />

the calling program, unless the image being continued is a type 061 special print control<br />

record. Since the type 061 record may exceed 63 words in length, the special print<br />

control record will be returned, and each continuation record associated with that special<br />

print control record will be returned as a separate record. All other control records are<br />

returned to the calling program.<br />

Calling Sequence for SDFI$<br />

Auto Switch Common Bank or Relocatable Relocatable<br />

L,U A0,address-of-packet<br />

LMJ X11,CBSDFI$-1<br />

error return<br />

end-of-file return<br />

normal return<br />

Calling Sequence for SDFINT$<br />

L,U A0,address-of-packet<br />

I$BJ X11,CBSDFI$<br />

error return<br />

end-of-file return<br />

normal return<br />

L,U A0,address-of-packet<br />

LMJ X11,SDFI$<br />

error return<br />

end-of-file return<br />

normal return<br />

Auto Switch Common Bank or Relocatable Relocatable<br />

L,U A0,address-of-packet<br />

LMJ X11,CBSDFINT$-1<br />

error return<br />

end-of-file return<br />

normal return<br />

L,U A0,address-of-packet<br />

I$BJ X11,CBSDFINT$<br />

error return<br />

end-of-file return<br />

normal return<br />

L,U A0,address-of-packet<br />

LMJ X11,SDFINT$<br />

error return<br />

end-of-file return<br />

normal return<br />

Returns<br />

If SDFI takes the error return, register A4 contains the error code. See 21.3 for an<br />

explanation of error codes.<br />

If SDFI takes the end-of-file return, an end-of-file control record was encountered (077 in<br />

S1 of the ICW). If the file or element read by SDFI does not contain an EOF control<br />

record, SDFI does not terminate correctly.<br />

If SDFI takes the normal return, the image has been read and is returned in the image<br />

buffer.<br />

7833 1733–004 21–9

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

Saved successfully!

Ooh no, something went wrong!