English
Language : 

45111 Datasheet, PDF (45/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
7.2 Comments
Comments are optional messages usually used to document the source code. They are ignored by the
assembler and may be placed almost anywhere in the program. A comment must be preceded by a
semicolon (;). The following demonstrates examples of comments.
; This program controls the GPX513v driver chip
;
mov counter, 120
;initialize loop counter
Notice that a comment can be placed on the same line as an instruction (see the third line above). Since
the assembler ignores everything that appears to the right of a semicolon, a comment may only appear
on its own line or to the right of an instruction.
For debugging purposes, lines of code can be hidden from the assembler, or commented out, simply by
inserting a semicolon before the first character of the line.
7.3 Assembler Directives
Assembler directives are special instructions to the assembler to help define symbols, set device options
or indicate how the code should be assembled. Directives may appear within the source code, like
assembly instructions, however, since they are instructions to the assembler and not the SX
microcontroller, they are not actually assembled into the final machine language program. Table 5 –
SASM Directives, below, describes the available SASM Assembler directives.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 45