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.

ROR, ROR$–Relocatable Output Routine<br />

15.3. EROR$, EROR$EB–End Relocatable Output<br />

Routine<br />

EROR$ terminates ROR after the last text word has been processed.<br />

EROR outputs the last block built by ROR and generates a transfer image. The transfer<br />

image is a special word group. The format is described in Section 5, “Relocatable Binary<br />

(RB) Format” of the Data Structures <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong>.<br />

Calling Sequence<br />

L A0,(transfer-addr,transfer-addr-lc)<br />

LMJ X11,EROR$ (or EROR$EB)<br />

error return<br />

normal return<br />

Note: If a transfer location is not specified, then A0 must be negative (for example, if<br />

the element is a subroutine).<br />

Parameters<br />

transfer-addr<br />

location of the first instruction to be executed in the main program.<br />

transfer-addr-lc<br />

location counter to which the address applies.<br />

Error Return<br />

The error return is taken when an I/O error occurs. The status is returned in A1.<br />

15.4. TBLWR$, TBLWR$EB–Write Table to File<br />

TBLWR$ writes the preamble constructed by the calling program to the program file that<br />

contains the relocatable text. ROR must have already written the element text to the<br />

program file, and EROR must have been called.<br />

An ER PFI$ is done to update the file's table of contents.<br />

The preamble consists of one to five tables. The entries in PARTBL+29 through 38<br />

(see Figure 14–1) are updated to reflect the preamble length, preamble location, and the<br />

element type (5 = relocatable). The format of the preamble is described in Section 5,<br />

“Relocatable Binary (RB) Format” of the Data Structures <strong>Programming</strong> <strong>Reference</strong><br />

<strong>Manual</strong>.<br />

15–6 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!