45181 Parallax Inc, 45181 Datasheet - Page 54
![SX TECH TOOL KIT NO POWER](/photos/9/29/92994/mfg_45181_sml.jpg)
45181
Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet
1.45180.pdf
(184 pages)
Specifications of 45181
Contents
SX Book, SX Key, SX Tech Board, Samples, Resonators, Cable and Manual
Product
Microcontroller Basic Stamps
Operating Supply Voltage
5 V
For Use With/related Products
SX MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 54 of 184
- Download datasheet (2Mb)
7 The SASM Assembler
The following example demonstrates the use of the IF...ELSE directive.
The condition for an IF...ELSE directive can contain expressions and multiple conditional statements.
Two or more conditional statements may be specified by appending them together with the conditional
operators NOT, AND, OR and XOR. For example:
would assemble the code block following it if choice equals 1 and delay is greater than 9 at assemble time.
If the statement or expression evaluates to anything other than zero (0), the condition is true; otherwise,
the condition is false.
7.3.13 The IF{N}DEF…ELSE…ENDIF Directives
The IFDEF…ELSE (if defined) and IFNDEF…ELSE (if not defined) directives are very similar to the
IF…ELSE directive. The difference is they assemble or prevent assembly of code blocks based on
whether a symbol is defined or not. For example:
would assemble the code block in the IFDEF statement because the DriverOn symbol was defined. If
DriverOn was not defined (i.e. line number 1, above, was commented out) the code block would be ig-
nored.
Note that SASM considers labels to be defined when there is an assignment using EQU or “=” in the
code before the IF{N}DEF directive, whereas the Parallax Assembler only accepts assignments using
EQU.
Page 54 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
Delay
Choice
IF
ENDIF
IF
ELSE
ENDIF
IF choice = 1 AND delay > 9
DriverOn
IFDEF
{some code block here}
ENDIF
EQU 10
EQU 1
Delay >=9
mov
add
Choice = 0
mov
mov
$08, #5
$09, #%011
$0A, #$1B
$0A, #$1C
EQU 1
DriverOn
Related parts for 45181
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![451-00303](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Terminals 3 Pin Single Row Header (long)
Manufacturer:
Parallax Inc
![451-04001](/photos/39/86/398671/451-04001-l_tmb.jpg)
Part Number:
Description:
Headers & Wire Housings 16 Pin Single Row Header
Manufacturer:
Parallax Inc
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: