beautypg.com

Using the macro assembler, Address spaces and segments – Zilog EZ80F916 User Manual

Page 202

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

182

Using the Macro Assembler

You use the Macro Assembler to translate eZ80Acclaim! assembly language files with the

.asm

extension into relocatable object modules with the

.obj

extension. After your relo-

catable object modules are complete, you convert them into an executable program using
the linker/locator. The Macro Assembler can be configured using the Assembler page of
the Project Settings dialog box (see “Project Settings—Assembler Page” on page 59).

NOTE: The Command Processor allows you to use commands or script files to automate

the execution of a significant portion of the IDE’s functionality. For more
information about using the Command Processor, see “Using the Command
Processor” on page 387
.

The following topics are covered in this chapter:

“Address Spaces and Segments” on page 182

“Output Files” on page 186

“Source Language Structure” on page 187

“Expressions” on page 192

“Directives” on page 196

“Conditional Assembly” on page 216

“Macros” on page 219

“Labels” on page 222

“Addressing Modes” on page 224

“Source Language Syntax” on page 225

“Compatibility Issues” on page 229

“Troubleshooting the Assembler” on page 229

“Warning and Error Messages” on page 230

NOTE: For more information about eZ80Acclaim! CPU instructions, see the “CPU

Instruction Set” section in the eZ80

®

CPU User Manual (UM0077).

ADDRESS SPACES AND SEGMENTS

The eZ80

®

architecture divides the entire memory space into various memory regions.

These memory regions are called address spaces in the assembler. Each address space can
have various segments associated with it. A segment is a contiguous set of memory loca-
tions within an address space. The segments can be predefined by the assembler or user
defined.

This manual is related to the following products: