beautypg.com

Org clause, Space clause – Zilog Z8F0130 User Manual

Page 327

background image

UM013037-1212

DS

Zilog Developer Studio II – Z8 Encore!

User Manual

303

Syntax

<mayinit_clause> =>

, MAYINIT

Example

DEFINE mySeg, SPACE=EDATA, MAYINIT

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>

Synonym

ORIGIN

Example

DEFINE near_code,ORG = %FFF8

; Uses current space, byte alignment, and absolute starting

; address at memory location %FFF8.

SPACE Clause

A

SPACE

clause defines the address space in which the segment resides. The linker groups

together segments with the same space identification. See the

Address Spaces

section on

page 278 for available spaces.

Syntax

<space_clause> => ,

SPACE

= <ident>

Examples

DEFINE fdata,SPACE = EData,ALIGN = 2

; Aligns on 2-byte boundary, relocatable.

DS

Defines storage locations that do not need to be initialized.