Top of, Bitwise exclusive or), Not) – Zilog ZUSBOPTS User Manual
Page 308: Sample linker map file, Top of ^ (bitwise exclusive or) ~ (not), In the, Syntax
Sample Linker Map File
UM017105-0511
280
Zilog Developer Studio II – ZNEO™
User Manual
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
~
Sample Linker Map File
IEEE 695 OMF Linker Version 6.20 (05120604)
Copyright (C) 1999-2004 Zilog, Inc. All Rights Reserved
LINK MAP:
DATE: Wed Dec 07 13:51:43 2005