English
Language : 

45111 Datasheet, PDF (60/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
7.3.23 The TITLE and STITLE Directives
The TITLE or STITLE directives set up the text to be used in the top line of the list file. The syntax is:
TITLE
STITLE
“<string>”
“<string>”
The text specified with <string> will be repeated on top of each page of the list file, provided the option
LIST L=PAGE is active.
7.3.24 The WATCH Directive
The WATCH directive allows the definition of format for viewing and modifying variables at runtime
during debug mode. The variable’s bit address, number of bits or bytes to view, and display format
may be specified. The syntax for the WATCH directive is:
WATCH
symbol{.bit}, count, format
The symbol argument can be a symbol name or register address and can optionally specify a bit address
within the symbol. If no bit address is specified, bit 0 is assumed. The count argument indicates the
number of bits (1-32) or bytes (1-16) to include in the displayed value. When using the FSTR or ZSTR
format, the count is the number of bytes while in all other formats the count is the number of bits. Up to
32 WATCH directives can be specified. Table 10 – WATCH Display Formats, below, lists the available
format settings for the WATCH directive.
Format
UDEC
SDEC
UHEX
SHEX
UBIN
SBIN
FSTR
ZSTR
Table 10 - WATCH Display Formats
Operation
Displays value in unsigned decimal format
Displays value in signed decimal format
Displays value in unsigned hexadecimal format
Displays value in signed hexadecimal format
Displays value in unsigned binary format
Displays value in signed binary format
Displays values in fixed-length string format
Displays values in zero-terminated format with maximum size
The WATCH directive may be specified anywhere in the source code, below a symbol’s definition;
however, it is suggested that it be specified near the top, below where symbols are defined. When code
containing one or more WATCH directives is assembled and programmed using Debug mode, a Watch
window appears, along with the other debugging windows, to display the results. The Watch window
display is updated at the same time the Registers and Code windows are updated. Typically, WATCH
directives are used in conjunction with the BREAK directive, however, asynchronous breaks and polls
(with the Poll button) may be used to update the display as well.
Page 60 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.