beautypg.com

Object code (.obj) file, Source language structure, General structure – Zilog ZUSBOPTS User Manual

Page 244: Source line

background image

Source Language Structure

UM017105-0511

216

Zilog Developer Studio II – ZNEO™
User Manual

Error and warning messages follow the source line containing the error(s). A count of the
errors and warnings detected is included at the end of the listing output file.

The addresses in the assembly listing are relative. To convert the relative addresses into
absolute addresses, select the

Show Absolute Addresses in Assembly Listings

check-

box on the

Output

page of the

Project Settings

dialog box. This option uses the informa-

tion in the

.src

file (generated by the compiler when the Generate Assembly Source

Code checkbox is selected [see

Project Settings—Listing Files Page

– see page 53]) and

the

.map

file to change all of the relative addresses in the assembly listing into absolute

addresses.

Object Code (.obj) File

The object code output file name is the same as the source file name with an

.obj

exten-

sion. This file contains the relocatable object code in OMF695 format and is ready to be
processed by the linker and librarian.

Source Language Structure

This section describes the form of an assembly source file.

General Structure

A 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 terminated by a car-
riage 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.

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.

Note:

This manual is related to the following products: