English
Language : 

45111 Datasheet, PDF (59/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
would result in the source code being expanded to:
add
$0A, #$01
add
$0A, #$01
add
$0A, #$01
during the assembly of the code.
Within a repeat block, the percent sign (%) alone may be used to refer to the current iteration (1–n) of
the block during assembly. For example:
REPT
add
ENDR
3
$0A,#%
would result in:
add
add
add
$0A, #1
$0A, #2
$0A, #3
during the assembly of the code. In other words, during assembly, the first time through the repeat
block, the % symbol is equal to 1, the second time through it is equal to 2, etc.
7.3.21 The RESET Directive
The RESET directive specifies the starting address of the code to be executed when a reset condition
occurs. The assembler places a ‘Jump to Location’ instruction at the last location in memory to facilitate
this. The syntax of the RESET directive is:
RESET
location
The location argument must reside within the first page memory.
7.3.22 The SPAC Directive
The Syntax of the SPAC directive is
SPAC
<expression>
It inserts the number of blank lines given by <expression> into the list file.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 59