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.

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

func-code<br />

The function code determines which of the absolute addressing routines is called by<br />

C$ABSAD. The function codes are described in the sections explaining each of the<br />

functions. The function code must be enclosed by apostrophes.<br />

The only values allowed for the function code on the C$ABSAD procedure call are<br />

CABSAD$, CAINIT$, CBX$, CSX$, and CSYMVL$. Any other value entered for the<br />

function code parameter on the C$ABSAD procedure call causes MASM to generate<br />

an E flag on that line and print the error message.<br />

p1,p2,p3<br />

ILLEGAL C$ABSAD FUNCTION<br />

The use of these parameters depends on the particular routine being called by<br />

C$ABSAD. Some of the routines use only p1; some may use only p1 and p2. In<br />

general, these parameters may be omitted. If so, the calling procedure uses the<br />

values in specific registers for the values of these parameters. Each routine's<br />

subsection describes these parameters.<br />

pkt-addr<br />

Address of the 300-word packet required by the common bank version of the<br />

routines. If this parameter is omitted and the common bank version of the routine is<br />

called (parameter t set to 'A' or 'CB'), then the address in register A5 is used as the<br />

starting address of the packet. This parameter may be omitted if the call is to the<br />

relocatable version of the routines but including it does not cause any problems.<br />

6.1.1. CABSAD$–Compute Absolute Address<br />

CABSAD$ computes the absolute address for a given address relative to a location<br />

counter.<br />

Calling Format<br />

C$ABSAD[,t] ‘CABSAD$’[,rel-addr,lc,elt-name] [pkt-addr]<br />

error return<br />

normal return<br />

Parameters<br />

t<br />

See 6.1.<br />

CABSAD$<br />

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

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

6–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!