beautypg.com

General structure – Zilog EZ80F916 User Manual

Page 208

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

188

“Assembler Rules” on page 189

General Structure

Every nonblank line in an assembly source file is either a source line or a comment line.
The assembler ignores blank lines. Each line of input consists of ASCII characters termi-
nated by a carriage return. An input line cannot exceed 512 characters.

A backslash (\) at the end of a line is a line continuation. The following line is concate-
nated onto the end of the line with the backslash, as exemplified in the C programming
language. If you place a space or any other character after the backslash, the following line
is not treated as a continuation.

The following sections describe the general structure:

“Source Line” on page 188

“Comment Line” on page 188

“Label Field” on page 188

“Instruction” on page 189

“Directive” on page 189

“Case Sensitivity” on page 189

Source Line
A source line is composed of an optional label followed by an instruction or a directive. It
is possible for a source line to contain only a label field.

Comment Line
A semicolon (;) terminates the scanning action of the assembler. Any text following the
semicolon is treated as a comment. A semicolon that appears as the first character causes
the entire line to be treated as comment.

Label Field
A label must meet at least one of the following conditions:

It must be followed by a colon.

It must start at the beginning of the line with no preceding white space (start in column
1).

NOTE:

Any instruction mnemonic (with no following operands) followed by a colon is
treated as a label.

This manual is related to the following products: