Add) – Zilog EZ80F916 User Manual

Page 279

Advertising
background image

UM014423-0607

Using the Linker/Locator

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

259

“FREEMEM” on page 261

“HIGHADDR” on page 262

“LENGTH” on page 262

“LOWADDR” on page 262

“* (Multiply)” on page 262

“Decimal Numeric Values” on page 262

“Hexadecimal Numeric Values” on page 263

“| (Or)” on page 263

“<< (Shift Left)” on page 263

“>> (Shift Right)” on page 263

“- (Subtract)” on page 263

“TOP OF” on page 264

“^ (Bitwise Exclusive Or)” on page 264

“~ (Not)” on page 264

The following note applies to many of the <expression> commands discussed in this sec-
tion:

NOTE: To use BASE, TOP, COPY BASE, COPY TOP, LOWADDR, HIGHADDR, LENGTH, and

FREEMEM <expression> commands, you must have completed the calculations on the
expression. This is done using the SEQUENCE and ORDER commands. Do not use an
expression of the segment or space itself to locate the object in question.

Examples

/* Correct example using segments */
SEQUENCE seg2, seg1 /* Calculate seg2 before seg1 */
LOCATE seg1 AT TOP OF seg2 + 1

/* Do not do this: cannot use expression of seg1 to locate seg1 */
LOCATE seg1 AT (TOP OF seg2 - LENGTH OF seg1)

+ (Add)

The + (Add) operator is used to perform addition of two expressions.

Syntax

<expression> + <expression>

Advertising
This manual is related to the following products: