Example of Convention
Description of Convention
Three dots following an item signify that more items with the
same form may be entered. For example, the directive PUB-
LIC has the following form:
Repeating elements...
[,name2 [,...]]
In the above form, the three dots following
that many names can be entered as long as each is pre-
ceded by a comma.
Statement Syntax
The construction of each statement is as follows:
[name] [operation] [operands] [;comment]
All fields are optional.
Each field (except the comment field) must be separated from other fields by at least one space
or one tab character.
Fields are not case-sensitive, i.e., lower-case characters are changed to upper-case characters
before processing.
Statements can be assigned labels to enable easy access by other statements. A name consists
of the following characters:
A~Z a~z 0~9 ? _ @
with the following restrictions :
0~9 cannot be the first character of a name
? cannot stand alone as a name
Only the first 31 characters are recognized
The operation defines the statement action of which two types exist, directives and instructions. Di-
rectives give directions to the Cross Assembler, specifying the manner in which the Cross Assem-
bler is to generate the object code at assembly time. Instructions, on the other hand, give
directions to the processor. They are translated to object code at assembly time, the object code in
turn controls the behavior of the processor at run time.
Operands define the data used by directives and instructions. They can be made up of symbols,
constants, expressions and registers.
Home Index Bookmark Pages Text
Previous Next
Pages: Home Index