Symbols / Labels
! Symbols
– Symbols are used as labels, constants, and substitution values
– Symbols are stored in a symbol table
– A symbol name
! is a string of up to 200 alphanumeric characters (A-Z, a-z, 0-9, $, and _)
! cannot contain embedded blanks
! first character cannot be a number
! case sensitive
– Symbols used as labels become symbolic addresses that are associated
with locations in the program
! Label Field
– Labels are symbols
– Labels must begin in column 1.
– A label can optionally be followed by a colon
– The value of a label is the current value of the Location Counter (address
within program)
– A label on a line by itself is a valid statement
– Labels used locally within a file must be unique.
Adapted from notes from BYU ECE124
5