English
Language : 

45111 Datasheet, PDF (46/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
Directive
= / SET
BREAK
CASE / NOCASE
DEVICE / FUSES /
PROCESSOR
DS / RES / ZERO
DW
END
EQU / GLOBAL
ERROR
EXPAND /
NOEXPAND
FREQ
__FUSE / __FUSEX
ID
IF
{ELSE}
ENDIF
IFDEF/IFNDEF
{ELSE}
ENDIF
INCLUDE
IRC_CAL
LIST
LOCAL
LPAGE
MACRO
{EXITM}
ENDM
Table 5 - SASM Directives
Description
Syntax
Assigns or reassigns a value to a symbol. This directive is used to
create and manipulate assemble-time variables.
symbol = value
Defines a run-time breakpoint.
BREAK
Specifies that the following instructions should be, or should not be,
case sensitive.
{NO}CASE
Sets SX device options. These directives usually precede all other direc-
tives and instructions.
DEVICE setting {,setting…}
Increments the memory pointer ($) by value. Used to reserve RAM and
E2Flash during assembly.
symbol DS value
Defines words in EEPROM.
DW data {,data…}
Marks the end of the source code. All text following the END will be
ignored by the assembler.
END
Assigns a value to a symbol. This directive is used to create assemble-
time variables.
symbol EQU value
Defines an assemble-time error or warning.
ERROR ‘error text’
Specifies that the following macro instructions should be, or should not
be, expanded in the list file. (See section 7.4.5 – The EXPAND and
{NO}EXPAND
NOEXPAND Directives for a detailed description.)
Specifies the clock frequency, in Hz, to be generated by the SX-Key
during debugging.
FREQ n
Defines FUSE and FUSEX words as explicit expression values. Not
__FUSE expression
recommended for use.
__FUSEX expression
Assigns a value to the 8-byte ID word in the SX. The text argument
may be up to 8 characters and should be enclosed in apostrophes.
ID ‘text’
IF condition
Conditional assembly and alternate conditional assembly block.
{ELSE}
ENDIF
Conditional assembly and alternate conditional assembly block based
upon symbol definitions.
IF{N}DEF symbol
{ELSE}
ENDIF
Includes a source code file, i.e. the INCLUDE directive is replaced by
the contents of the file specified with the directive.
INCLUDE “<file path>”
Specifies the calibration value for the internal RC oscillator.
IRC_CAL IRC_SLOW |
IRC_4MHZ | IRC_FAST
LIST {C=cols} {F=format}
{L=NONE|NOPAGE|PAGE}
Controls the list format, and sets certain options
{N=lines} {P=processor}
{Q=message number}
{R=radix} {X=ON|OFF}
Declares the labels named after the directive as private symbols that
are only available inside a macro body. (See section 7.4.4 – The LOCAL LOCAL <label>[, <label>]…
directive for a detailed description.)
Inserts a form feed at this point in the list file.
LPAGE
label MACRO {value}
Defines a macro. (See section 7.4 – Macros for a detailed description.) {EXITM}
ENDM
Page 46 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.