English
Language : 

45111 Datasheet, PDF (74/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
At the end of the list file, there is a Cross Reference listing with all symbols used in the program,
structured like in the following example:
__SX_FREQ
__SX_IRC_CAL
__SX_RESET
_CheckEmergency
ByteCnt
fsr
DATA
DATA
RESB
ADDR
VAR
RESV
00989680 0008
00000002 0007
00000AA3 0012
0000033C 0787
00000097 0124
00000004 0379
The leftmost column contains the symbol names, followed by the type in the next column (ADDR =
label address, DATA = internal values, RESB = reset branch, RESV = reserved variable, VAR =
program-defined variable or constant).
The next column shows the values of the symbols, i.e. an address, the constant value, etc., and the
rightmost column lists the source code line number where the symbol is defined.
The Map File is not required by the SX-Key software.
The Object File contains an image of the generated code as it must be transferred into the SX device’s
program memory during downloads.
7.11 SASM Warning and Error Messages
SASM reports two types of messages during the assembly process: warnings and errors. Warnings are
informative message about potential problems with the source code, but they do not halt the assembly
or the download process. Errors are critical messages indicating syntactic problems with the source
code. Errors prevent assembly from completing successfully and, if invoked, the download process is
prevented as well.
While warnings can sometimes provide useful information, many times they can become a nuisance.
Therefore, SASM allows warnings to be suppressed with the LIST Q directive. The format is as follows:
LIST Q = {warning number}
where warning number is the actual number displayed together with the warning message when it is not
suppressed. For example, you might see a warning similar to the following:
…Line 15, Warning 37, Pass2: Literal truncated to 8 bits
If this warning tells you something you already know, and it is just a nuisance to you, use the warning
number (37 in this example) in a LIST Q directive. For example, near the top of the code insert
LIST Q = 37
To suppress multiple warnings, such as #37 and #64, you can use the LIST Q directive in the format
shown below:
Page 74 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.