beautypg.com

Zilog EZ80F916 User Manual

Page 224

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

204

For more information on the

SEGMENT

directive, see “Segments” on page 184.

Synonym

.define

Syntax

<segment_definition> =>

DEFINE

<ident>[<space_clause>][align_clause>][<org_clause>]

Example

DEFINE near_code ; Uses the defaults of the current

; space, byte alignment and relocatable.

DEFINE irq_table,ORG=%FFF8 ; Uses current space byte alignment and

; absolute starting address at

; memory location %FFF8.

ALIGN Clause
Allows you to select the alignment boundary for a segment. The linker places modules in
this segment on the defined boundary. The boundary, expressed in bytes, must be a power
of two (1, 2, 4, 8, and so on).

Syntax

<align_clause> => ,

ALIGN

= <int_const>

ORG Clause
Allows you to specify where the segment is to be located, making the segment an absolute
segment. The linker places the segment at the memory location specified by the ORG
clause.The default is no

ORG

, and thus the segment is relocatable.

Syntax

<org_clause> => ,

ORG

= <int_const>

Examples

DEFINE near_data

; Uses the defaults of ROM, byte alignment and relocatable.

DEFINE far_data,SPACE = RAM,ALIGN = 2

; Aligns on a 2-byte boundary, uses RAM space, relocatable.

DEFINE near_code,ORG = %FFF8

This manual is related to the following products: