Overview; Assembler Statements; Statement Syntax (Asm68) - Texas Instruments TI-89 Software Manual

Sierra c assembler
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

138
3.3.1.

Overview

The two assemblers, asm68 and asm68k, translate assembler source to object
code. This translation is performed using a single pass of the assembler source
file. After the source has been completely scanned, forward references are
resolved. Any references that cannot be resolved (e.g., references to symbols
defined in other files) are left for the linker to resolve.
This section describes the format of assembler source files, management of
object code sections, symbol definition and usage, and symbolic expression
construction. The format of the object files that are produced is UNIX System V
COFF (see section 1.4 Object File Format).
3.3.2.

Assembler Statements

An assembly language program consists of statements that are used to generate
machine instructions, control the behavior of the assembler, and provide
documentation. The assemblers asm68 and asm68k have different statement
syntaxes, which are described below.
3.3.2.1.

Statement Syntax (asm68)

The syntaxes for the various types of assembler statements accepted by asm68
are summarized in Table 3.3. Any of the fields shown can begin in any column,
provided they observe the specified syntax. Whitespace (i.e., spaces and tabs) is
used to separate the various fields, although no whitespace is required after the
label field or before the comment field. Whitespace is permitted within any of the
fields.
Statement
Label
Instruction
Directive
Assignment
Comment
TI-89 / TI-92 Plus Sierra C Assembler Reference Manual
Syntax
label : [ ; comment ]
[ label : ] instruction [ operand ] [ ; comment ]
[ label : ] directive [ operand ] [ ; comment ]
[ label : ] symbol { = | == } expression [ ; comment ]
; comment
Table 3.3: Statement Syntax (asm68)
Section 3: Assembler
Not for Distribution
Beta Version February 2, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-89 plusTi-92 plus

Table of Contents