beautypg.com

And), Base of, And) base of – Zilog EZ80F916 User Manual

Page 280

background image

UM014423-0607

Using the Linker/Locator

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

260

& (And)

The & (And) operator is used to perform a bitwise & of two expressions.

Syntax

&

BASE OF

The BASE OF operator provides the lowest used address of a group, address space, or seg-
ment, excluding any segment copies when <name> is a segment. The value of BASE OF
is treated as an expression value.

Syntax

BASE OF <name>

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

BASE OF Versus LOWADDR OF

By default, allocation for a given memory group, address space, or segment starts at the
lowest defined address for that memory group, address space, or segment. If you explicitly
define an assignment within that memory space, allocation for that space begins at that
defined point and then occupies subsequent memory locations; the explicit allocation
becomes the default BASE OF value. BASE OF <name> gives the lowest allocated
address in the space; LOWADDR OF <name> gives the lowest physical address in the
space.

For example:

RANGE EXTIO $0 : $FFFF
RANGE INTIO $0 : $FF
RANGE ROM $0 : $1FFFF
RANGE RAM $5000 : $1FFFF
RANGE s_checksum $0 : $FFFF
RANGE s_nvrblock $5000 : $1FFFF

/* RAM allocation */
LOCATE s_uninit_data at $5000
LOCATE BSS at (TOP OF s_uninit_data)+1
LOCATE s_nvrblock at $FE00
DEFINE __low_data = BASE OF s_uninit_data
DEFINE __copy_code_to_ram = 0

Using

LOCATE s_uninit_data at $5000

or

This manual is related to the following products: