beautypg.com

Top of, Bitwise exclusive or), Not) – Zilog EZ80F916 User Manual

Page 284: Using modified zds ii startup modules, Top of ^ (bitwise exclusive or) ~ (not)

background image

UM014423-0607

Using the Linker/Locator

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

264

TOP OF

The TOP OF operator provides the highest allocated address of a group, address space, or
segment, excluding any segment copies when <name> is a segment. The value of TOP OF
is treated as an expression value.

Syntax

TOP OF

<name> can be a group, address space, or segment.

If you declare a segment to begin at

TOP OF

another segment, the two segments share one

memory location.

TOP OF

give the address of the last used memory location in a segment,

not the address of the next available memory location. For example,

LOCATE segment2 at TOP OF segment1

starts

segment2

at the address of the last used location of

segment1

. To avoid both seg-

ments sharing one memory location, use the following syntax:

LOCATE segment2 at (TOP OF segment1) + 1

^ (Bitwise Exclusive Or)

The ^ operator is used to perform a bitwise exclusive OR on two expressions.

Syntax

^

~ (Not)

The ~ (Not) operator is used to perform a one’s complement of an expression.

Syntax

~

USING MODIFIED ZDS II STARTUP MODULES

This section explains what steps you need to take to use modified C startup modules in dif-
ferent eZ80Acclaim! linker configurations.

The following ZDS II startup modules are required as part of correctly initializing the C
run-time environment for the eZ80

®

, as discussed in “Startup Files” on page 157:

src\boot\common\vectors16.asm

for eZ80190, eZ80L92, eZ80F92, and

eZ80F93 devices

src\boot\common\vectors24.asm

for eZ80F91

This manual is related to the following products: