beautypg.com

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

Page 307

background image

UM013037-1212

Object Code (.obj) File

Zilog Developer Studio II – Z8 Encore!

User Manual

283

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 (see the

Show Absolute Addresses in Assembly Listings

section

on page 109). This option uses the information in the

.src

file (generated by the compiler

when the

-keepasm

option is used or when the

Generate Assembly Source

checkbox is

selected [see the

Generate Assembly Source Code

section on page 79]) 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

The following sections describe the form of an assembly source file:

General Structure

– see page 283

Assembler Rules

– see page 285

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 in the C programming language. Place
a space or any other character after the backslash if you do not want the line to be contin-
ued.

The following sections describe the general source language structure:

Source Line

– see page 284

Comment Line

– see page 284

Label Field

– see page 284

Note: