The name field is used for instruction labels.procedure names, and variable names. The assembler translates into memory addresses.
Names can be from 1 to 31 characters long, an may consist of letter, digits, and the special characters ? . @ _ $%. Embedded blanks are not allowed. If a period is used, it must be the first character. names may not begin with a digit. The assembler does not differentiate between upper and lower case in a name.
Examples of legal names
COUNTER1
@character
SUM_OF_DIGITS
$1000
DONE?
TEST
Examples of illegal names
TWO WORDS contains a blank
2abc begins with a digit
A45.28 .not first character
YOU&ME Contains an illegal character
No comments:
Post a Comment