English
Language : 

45111 Datasheet, PDF (73/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
When you assemble this code with SASM, the directives in the first (ifdef) block will be read by the
assembler, causing the use of an 8-level stack, and the expanded option register, and the RC clock
calibration set to slow.
When you use the Parallax Assembler instead, __SASM is not defined, thus the device directive in the
lower (else) block will be read, the DEVICE STACKX_OPTIONX directive, which is the correct syntax
for the Parallax Assembler to use an 8-level stack, and the expanded option register. This also
suppresses the IRC_CAL directive which is not supported by the Parallax Assembler.
7.10 Files created by SASM
When SASM successfully assembles a source code file, it creates the following files, located in the same
folder where the source code file resides:
• List file (.LST)
• Map File (.MAP)
• Object file (.OBJ)
In addition, the editor creates or overwrites a backup (.BAK) file when the respective option is set on in
the Configure dialog. The backup file is a copy of the previously saved source code file.
All files are named with the associated source code file's name, but with the extensions mentioned
above.
The List File contains the original source code plus additional information. Here a part of a list file is
shown:
155 =00000000
156 0000 001C
157
158 =00000001
159 0001 0470
160 0002 02B0
161 0003 0543
162 0004 0670
163 0005 0231
164 0006 0643
ISR
bank
Serial
:RS232_Transmit
clrb
TxDivide.3
inc
TxDivide
stz
snb
TxDivide.3
test
TxCount
snz
In the leftmost column you will find the line numbers of the source code file. The next column either
contains a value (for lines with labels, EQU, =, ORG, etc. directives), or the instruction address (for lines
that evaluate to executable code). When a line contains an instruction, the executable code is shown in
the next column to the right of the address.
In the remaining columns, the original source code is shown.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 73