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.

el-addr<br />

lc<br />

CABSAD$, CRELAD$–Addressing Routines<br />

Relative address to be converted. This is the address relative to some location<br />

counter that is converted to an absolute address.<br />

Location counter of the address to be converted. Parameter rel-addr gives the<br />

address to be converted relative to a specific location counter. This parameter tells<br />

the routine which location counter to use. This parameter may be given as an actual<br />

number, a tag that has been equated to an actual number, or the address of a word<br />

that contains the number.<br />

elt-name<br />

Name of the element containing the relocatable address that is to be converted to an<br />

absolute address. The element name may be from 1 to 12 characters selected from<br />

the set A through Z, 0 through 9, and the special characters - and $. If given as a<br />

string, then the parameter must be surrounded by apostrophes on the procedure<br />

call. This parameter can also be given as the address of a two-word area that<br />

contains the name in Fieldata format, left-justified and space-filled.<br />

pkt-addr<br />

See 6.1.<br />

If all of the parameters rel-addr,lc,elt-name are omitted on the call, then the routine uses<br />

the value in register A0 for rel-addr, the value in register A1 for lc, and the value in<br />

registers A2 and A3 for elt-name.<br />

Returns<br />

normal<br />

Register A0 contains the requested absolute address and A1 contains a pointer to<br />

the Segment Load Table (SLT$). If register A1 = 0, either the program is not<br />

segmented or the element lies in the main segment. The absolute address returned<br />

in A0 is always in main storage.<br />

The following instruction causes the instruction immediately after it to be skipped if<br />

the element is in main storage:<br />

TP SLT$,A1<br />

On return, H1 of register A2 contains the length of the specified location counter and<br />

H2 of register A2 contains the starting address of that location counter, for possible<br />

further use.<br />

7833 1733–004 6–3

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

Saved successfully!

Ooh no, something went wrong!