English
Language : 

45111 Datasheet, PDF (51/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
7.3.5 The DS Directive
The DS (define space) directive increments the location pointer during assembly. This may be used to
cause the assembler to arrange sequential RAM assignments (arrays). For example:
ORG
Array
Other
$08
DS 3
DS 2
defines 3 bytes, starting at location 8, for the Array symbol. Array+1 is the second element of the array
and array+2 is the third element. The Other symbol’s first and second elements are placed starting with
location $0B. Note that no code is generated in the example above.
Instead of the DS, you may alternatively use the words RES or ZERO; they have the same meaning.
7.3.6 The DW Directive
The DW (define word) directive defines 12-bit words in EEPROM. This is used to store a data table in
the SX EEPROM space. For example:
DW
$FFF, $009, $1A0
stores the values $FFF, $009 and $1A0 into EEPROM starting at the current location. You may also use
the DW directive to define a sequence of ASCII characters like in
DW
“hello”
This creates a data table in the EEPROM containing the ASCII codes of the characters specified in the
string, i.e. $068, $065, $06C, $06C, $06F. See Chapter 10.5 – Creating Tables for more information on
using tables.
7.3.7 The END Directive
The END directive indicates the end of the source code in a file. Any text that follows the end directive
is ignored by the assembler.
This feature is handy when you want to add any kind of comment text to the end of the source code file
without the need to mark each line as a comment.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 51