English
Language : 

45111 Datasheet, PDF (47/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
Directive
ORG
RADIX
REPT
ENDR
RESET
SPAC
STITLE
TITLE
WATCH
7 The SASM Assembler
Description
Specifies the starting RAM or EEPROM location of the code that
follows.
Specifies the radix for numeric constants
Repeat block of code a specified number of times.
Specifies the starting location of the program in the SX’s memory.
Inserts blank lines in the listing file
Synonym for TITLE
Defines a program listing title
Defines a symbol to watch during debugging.
Syntax
ORG value
RADIX B | BIN | O | OCT |
D | DEC | H | HEX
REPT count
ENDR
RESET label
SPAC <number>
STITLE “<string>”
TITLE “<string>”
WATCH addr, count, format
7.3.1 The EQU and = Directives
The EQU (equate) directive defines symbols for constants. See the section entitled “Symbols” for further
details. Instead of EQU, you may alternatively use the word GLOBAL; it has the same meaning.
The = (equal) directive defines symbols for constants or assemble-time variables. This directive is
similar to EQU except that any symbols created with the = directive can be reassigned new values
during assemble-time with additional = directives. See section 7.5 for further details. Instead of an
equals sign, you may alternatively use the word SET; it has the same meaning.
7.3.2 The BREAK Directive
The BREAK directive causes a breakpoint to be set at the first line of executable code immediately
following it. This is used to set and save a breakpoint in the source code in order to avoid the need to
manually set a breakpoint in the Debug window. The syntax of the break directive is:
BREAK
breakpoint code
where breakpoint code is the desired line of source code to break on. The BREAK directive is ignored
during any operation other than Debug. Only one breakpoint can be defined at a time.
7.3.3 The CASE and NOCASE Directives
The CASE and NOCASE directives specify how to handle the character case (upper or lower) of
symbols in source code. The CASE directive will cause all the code below it, up to a NOCASE directive,
to be case sensitive. The NOCASE directive will cause all code below it, up to a CASE directive, to be
case insensitive. The default is case insensitive. The CASE and NOCASE directives can be used as often
as desired and will only affect the code below them.
Using case sensitivity will allow symbols with the same name, but different character cases, to be
treated as different symbols. For example:
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 47