Naming Conventions 

Assembly language imposes some rules on how names are assigned to labels, variables, procedures and macros. It is the assembler's function to translate those names into memory addresses.
Note that naming conventions used in this course are related to the MASM 6.11 assembler used in the lab.



Names:

A name is used to identify a label, a variable, a procedure or a macro. Here are the general rules on the use of names:
A name is between 1 and 31 characters in length
A name may include letters, numbers and special characters, such as ? . @ _ $ %
A name should not begin with a digit
A name may begin with a letter or a special character
If a period (.) is used, it must be the first character
Names are not case sensitive.

Below are examples of legal and illegsal names.

 Examples of legal names
  • COUNTER1
  • @character
  • SUM_TOTAL
  • $1000
  • Done?
  • .TEST

  •  Examples of illegal names
  • TWO WORDS
  • 2abc
  • A45.28
  • You&Me
  • A+B