English
Language : 

45111 Datasheet, PDF (52/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
7.3.8 The ERROR Directive
The ERROR directive emits a user-defined message for this source code line. The syntax for the ERROR
directive is:
ERROR
[P1|2[W|C]]“<string>”
During assembly, SASM performs two passes through the source code. The optional first parameter can
be used to control the type of message, and in which pass it shall be emitted.
P1 and P2 select the first and second pass; when the parameter is missing, pass 2 is the default. W
defines a warning message, and C defines a comment. When W and C are omitted, the message will be
an error. Assembly is stopped on error messages, but it continues on warnings and comments. Errors
and warnings are displayed in the status area if the SX-Key software, where comments are only placed
in the listing file.
Examples:
ERROR
ERROR P1
ERROR P1W
ERROR P1C
ERROR P2
ERROR P2W
ERROR P2C
“Message”
“Message”
“Message”
“Message”
“Message”
“Message”
“Message”
; Pass 2 error
; Pass 1 error
; Pass 1 warning
; Pass 1 comment
; Pass 2 error (same as the default)
; Pass 2 warning
; Pass 2 comment
User-defined errors are particularly useful to provide usage checking for complex macros.
7.3.9 The FREQ Directive
The FREQ (frequency) directive is used to set the frequency (in Hz) of the SX-Key’s internal
programmable oscillator to be used during debugging. The syntax for the FREQ directive is:
FREQ
frequency
Note that frequency can be any number from 400000 to 110000000. Additionally, underscore characters
can be used to help make the number more readable, as in 50_000_000, which is 50 MHz.
7.3.10 The __FUSE and __FUSEX Directives
These two directives allow defining explicit expression values for the two SX configuration registers,
FUSE and FUSEX (note the two leading underscores in front of the directive names). It is not
recommended to use these directives for setting the fuse bits directly. Instead, use the various other
directives to configure the SX chip according to the needs of your application.
Page 52 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.