45205 Parallax Inc, 45205 Datasheet - Page 72

SX TECH BOARD

45205

Manufacturer Part Number
45205
Description
SX TECH BOARD
Manufacturer
Parallax Inc
Type
MCUr
Datasheet

Specifications of 45205

Contents
Board
For Use With/related Products
SX MCUs
For Use With
28825 - MINI SOUND PLAYER SOUNDPAL130-28029 - KIT PARTS SMART SENSORS
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
7 The SASM Assembler
The second expression, above, will evaluate to 11; the expression within parentheses is evaluated first.
The third expression, loop_count+10/5, will evaluate to 5; 15 + 10 = 25 / 5 = 5.
7.8
The assembler “understands” four data types: decimal, binary, hexadecimal and ASCII. Table 13 – Data
Types, below, describes these data types and their syntax.
For compatibility reasons, the notations xxxxb and xxxxh are also accepted for the binary and
hexadecimal data types, respectively. It is suggested that all new SX assembly code use the notation
listed in Table 13 – Data Types.
Any numbers that evaluate to a result greater than 32-bits wide will cause an error at assemble time.
The largest number allowed is
4_294_967_295 decimal,
$FFFF_FFFF hexadecimal, or
%1111_1111_1111_1111_1111_1111_1111_1111 binary.
7.9
SASM has an internal pre-defined constant named
(note that there are two leading underscores in the name). This allows the preparation of source code
that can contain SASM-specific code, and code that might be relevant for another SX assembler (like the
Parallax assembler) by using an IFDEF…ELSE…ENDIF block. Here is an example:
Page 72 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
Data Types
The __SASM Pre-Defined Constant
__SASM
ifdef __SASM
else
endif
DEVICE STACKX
IRC_CAL IRC_SLOW
DEVICE STACKX_OPTIONX
Data Type
Decimal
Binary
Hexadecimal
ASCII
Table 13 - Data Types
Xxxx
%xxxx
$xxxx
‘x’
Syntax
Example
1250
%01101010
$1AC6
‘S’

Related parts for 45205