beautypg.com

Ds end, Space clause – Zilog ZUSBOPTS User Manual

Page 260

background image

Directives

UM017105-0511

232

Zilog Developer Studio II – ZNEO™
User Manual

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 Table 18, “ZNEO Address
Spaces,” on page 212 for
available spaces.

Syntax

<space_clause> => ,

SPACE

= <indent>

Example

DEFINE fdata,SPACE = ERAM,ALIGN = 2

; Aligns on a 2-byte boundary, relocatable.

DS

Defines storage locations that do not need to be initialized.

Synonym

.block

Syntax

<define_storage> =>

DS

<value>

Example

NAME DS 10 ; Reserve 10 bytes of storage.

END

Informs the assembler of the end of the source input file. If the operand field is present, it
defines the start address of the program. During the linking process, only one module can
define the start address; otherwise, an error results. The END directive is optional for
those modules that do not define the start address.

This manual is related to the following products: