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.

Section 6<br />

CABSAD$, CRELAD$–Addressing<br />

Routines<br />

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

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

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

The following routines are available either as relocatables or common bank absolutes and<br />

can be used in conjunction with D-bank segments above 65K addressing.<br />

When calling the common bank version of the routines, it is necessary to provide a<br />

300-word buffer for their internal use.<br />

6.1. Absolute Addressing Routines<br />

The CABSAD$ routines are called by the MASM procedure C$ABSAD. C$ABSAD is<br />

used to generate the calling sequence for the relocatable version, the common bank<br />

version, or the common bank version using the Auto Switch calling sequence. Section 3<br />

describes the advantages and disadvantages of using the different types of calls.<br />

Calling Format<br />

C$ABSAD[,t] func-code [,p1,p2,p3] [pkt-addr]<br />

error return<br />

normal return<br />

Parameters<br />

t<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 />

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 />

7833 1733–004 6–1

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

Saved successfully!

Ooh no, something went wrong!