Table of Contents
v
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
3.3.1. Overview ................................................................................................ 138
3.3.2. Assembler Statements ........................................................................... 138
3.3.2.1. Statement Syntax (asm68) .............................................................................. 138
3.3.2.2. Statement Syntax (asm68k) ............................................................................ 139
3.3.3. Character Set ......................................................................................... 140
3.3.4. Sections ................................................................................................. 140
3.3.4.1. Section Types .................................................................................................. 140
3.3.4.2. Creating Sections ............................................................................................ 141
3.3.4.3. Location Counter ............................................................................................. 141
3.3.4.4. Structure Templates ........................................................................................ 141
3.3.5. Symbols ................................................................................................. 141
3.3.5.1. Symbol Syntax ................................................................................................. 142
3.3.5.2. Labels .............................................................................................................. 143
3.3.5.3. Symbol Assignment ......................................................................................... 143
3.3.5.4. Comm and Lcomm Symbols............................................................................ 144
3.3.5.5. Undefined Symbols.......................................................................................... 144
3.3.5.6. Compiler Locals ............................................................................................... 145
3.3.5.7. Floating-Point Symbols .................................................................................... 145
3.3.6. Constants ............................................................................................... 145
3.3.6.1. Integer Constants ............................................................................................ 145
3.3.6.2. Character Constants ........................................................................................ 146
3.3.6.3. Floating-Point Constants ................................................................................. 148
3.3.7. Expressions............................................................................................ 148
3.3.7.1. Operands ......................................................................................................... 148
3.3.7.2. Operators ......................................................................................................... 149
3.3.7.3. Expression Evaluation ..................................................................................... 150
3.4. Instruction Set .................................................................................................. 152
3.4.1. Syntax .................................................................................................... 152
3.4.2. Instruction Sizing.................................................................................... 152
3.4.3. Instruction Optimization.......................................................................... 153
3.5. Effective Addressing Modes............................................................................. 155
3.5.1. Overview ................................................................................................ 155
3.5.2. Terminology ........................................................................................... 157
3.5.3. Effective Address Syntax ....................................................................... 158