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.

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

CBX$<br />

CBX$ is the function code that determines which of the absolute addressing routines<br />

are called by C$ABSAD. It must be enclosed by apostrophes.<br />

bank-name<br />

Name of the bank for which the routine should find the BDI. The bank name may be<br />

from 1 to 12 characters selected from the set A through Z, 0 through 9, and the<br />

special characters - and $. If given as a string, then the parameter must be<br />

surrounded by apostrophes on the procedure call. This parameter may also be given<br />

as the address of a two-word area that contains the name in Fieldata format, leftjustified<br />

and space-filled.<br />

If the parameter bank-name is omitted, then the routine uses the value in registers<br />

A0 and A1 for bank-name. In this case the bank name must be left justified in the<br />

register pair and space filled. The name must be in Fieldata format.<br />

pkt-addr<br />

See 6.1.<br />

Returns<br />

error<br />

normal<br />

A0 = 0<br />

A0 > 0<br />

The system could not find the specified name in the diagnostic table.<br />

An I/O error occurred. The register contents are the same as for an I/O error<br />

from CABSAD$.<br />

Register A0 contains the requested BDI.<br />

6.1.4. CSX$–Compute Segment Index<br />

CSX$ computes the segment index that corresponds to a given segment name.<br />

The calling program can convert a segment index to a Segment Load Table (SLT$) offset<br />

pointer by multiplying the index by 4. Segment indexes are the values that reference ER<br />

LOAD$. The main segment is an exception.<br />

Calling Format<br />

C$ABSAD[,t] ‘CSX$’[,seg-name] [pkt-addr]<br />

error return<br />

normal return<br />

6–6 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!