First page Back Continue Last page Overview Graphics
Labels designate memory locations for variables or code.
The label field generally begins in column 1 and terminates with colon.
Labels must start with an alphabetic character, underscore, or period. Numbers and dollar signs are also allowed in the body of the label.
Register names are reserved and cannot be used as labels.
A label can be placed on a line by itself. In this case the value of the label will be the address of the first line of code following the label. A label may also be placed on the same line as the code as shown in the example below.
Start: LDAA #$20
Below is an example of a symbol table showing the locations of labels in a sample program. The symbol table is generated by the linker and stored in a file with the .map extension.
BigValues 00000818 defined in error.o section .bss
Funct1 0000098a defined in error.o section .text
Funct2 000009cb defined in error.o section .text
HighestValue 0000081e defined in error.o section .bss
LowestValue 00000820 defined in error.o section .bss
Values 00000800 defined in error.o section .data,