45111 Parallax Inc, 45111 Datasheet - Page 58

MANUAL FOR SX-KEY/BLITZ VER. 2.0

45111

Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 45111

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
7 The SASM Assembler
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 E
7.3.19 The RADIX Directive
The RADIX directive sets the default for constants. The syntax is:
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:
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:
Note that count must be greater than 0 and ENDR is required to end the repeat block. For example:
Page 58 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
ORG
RADIX = B | BIN | O | OCT | D | DEC | H | HEX
ORG
RADIX = HEX
ORG
REPT
codeblock
ENDR
REPT
add
ENDR
100
100
location
count
3
$0A, #$01
; 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)
2
Flash.

Related parts for 45111