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.

Parameters<br />

t<br />

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

Type of call to the routine. This parameter is optional and may be omitted. CB or A,<br />

if specified, must be enclosed by apostrophes.<br />

func-code<br />

p1,p2<br />

blank Call the relocatable version. This is the default if t is omitted.<br />

'CB' Call the common bank version.<br />

'A' Call the common bank version using the Auto Switch method.<br />

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

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

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

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

CRELAD$, CRINIT$, CBN$, and CSN$. Any other value entered for the function<br />

code parameter on the C$RELAD procedure call causes MASM to generate an E flag<br />

on that line and print the error message<br />

ILLEGAL C$RELAD FUNCTION<br />

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

by C$RELAD. Some of the routines only use p1; some may use both 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.2.1. CRELAD$–Compute Relative Address<br />

CRELAD$ computes the element name, location counter number, and address relative<br />

to the location number of a caller-specified absolute address.<br />

Calling Format<br />

C$RELAD[,t] ‘CRELAD$’[,abs-addr] [pkt-addr]<br />

error return<br />

normal return<br />

7833 1733–004 6–9

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

Saved successfully!

Ooh no, something went wrong!