English
Language : 

45111 Datasheet, PDF (58/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
7 The SASM Assembler
ORG
location
Note that the ORG directive does not dictate whether the location is in RAM or EEPROM. The
assembler simply sets the location pointer as desired and the instructions or directives following the
ORG will be processed in relation to this pointer. The ORG directive is used to place data and
instructions at specific locations in RAM and E2Flash.
7.3.19 The RADIX Directive
The RADIX directive sets the default for constants. The syntax is:
RADIX = B | BIN | O | OCT | D | DEC | H | HEX
The radix can be set to binary, octal, decimal, or hexadecimal. The default radix is decimal unless
modified by a RADIX directive or by LIST R = <radix>.
Here is an example:
ORG 100
RADIX = HEX
ORG 100
; Sets the origin to 64 hex or 100 decimal (default radix is decimal)
; Sets the origin to 100 hex or 256 decimal (radix is hex now)
7.3.20 The REPT Directive
The REPT (repeat) directive is used to indicate that a block of code is to be repeated a specified number
of times during assembly. The syntax for the REPT directive is:
REPT
codeblock
ENDR
count
Note that count must be greater than 0 and ENDR is required to end the repeat block. For example:
REPT
add
ENDR
3
$0A, #$01
Page 58 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.