Chapter 14 Reading List Files

14.2.2 Symbol Table

If only the l (letter) option is specified, and not the c or s options, when the assembler is invoked, the assembler will output a symbol table to the list file after the machine language code section.

If the c option is specified, a cross-reference table will be output instead of the symbol table. The symbol table outputs the name, value, and type of every symbol in the source file. It has the following format.

Symbol Value

 

Supplemental

 

 

Symbol Type

Symbol Name

 

 

Information

 

 

 

 

 

 

 

*

 

 

 

A

 

 

00000000

 

 

 

 

 

T

XXXXXX

 

+

 

 

 

U

 

 

-

 

 

 

D

 

 

 

 

 

 

 

 

 

 

Symbol Value

The symbol's value is shown as eight hexadecimal digits.

Supplemental Information

The symbol type may be preceded by a * or +.

*This indicates an externally defined symbol.

+This indicates an undefined symbol.

-This indicates an externally referenced symbol.

Symbol Type

This indicates the type of symbol. All symbols can be classified into four types: A, U, T, and D.

A

This indicates that the symbol value is absolute.

TThis indicates a symbol with the CODE attribute and an address as its symbol value.

UThis indicates that the symbol is not defined in the source file.

D

This indicates a symbol with the DATA attribute and an address as its symbol value.

Reading List Files 271

Page 283
Image 283
Panasonic MN1030 user manual Symbol Table, Symbol Value, Symbol Type, Symbols value is shown as eight hexadecimal digits