45181 Parallax Inc, 45181 Datasheet - Page 142
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: 142 of 184
- Download datasheet (2Mb)
13 Appendix C: SX Instruction Set
SUB
Operation: src is subtracted from dest. C will be cleared to 0 if an underflow occurred; otherwise, C will be set to 1.
SUBB
Operation: Subtracts src_bit from dest. If dest was decremented, Z will be set if the result was zero; else, Z will be
SWAP
Operation: The high- and low-order nibbles of dest are swapped. The MOV W,<>fr command is similar to SWAP
Page 142 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
1) SUB
2) SUB
3) SUB
1) SUBB
1) SUBB
1) SWAP fr
Command
Command
Command
dest, src
fr, W
fr1, #literal
fr1, fr2
DC will be cleared to 0 if an underflow occurred in the least-significant nibble. Z will be set to 1 if the
result was 0; otherwise, Z will be cleared to 0. The MOV W, fr-W command is similar to #1, except the
result is moved to W, and fr keeps its original contents. If CARRYX is specified, c is added to the result.
Insert an STC before the first Sub on a register to avoid strange results.
dest, src_bit
fr, op.bit
fr, /op.bit
cleared. This instruction is useful for subtracting the carry from the upper byte of a double-byte value
after the lower byte has been subtracted.
dest
fr, except the result is moved to W, and fr keeps its original contents.
Words
Words
Words
1
2
2
2
2
1
Cycles
Cycles
Cycles
1 (4)
2 (8)
2 (8)
2 (8)
2 (8)
1 (4)
fr, W, C, DC, Z
fr, W, C, DC, Z
fr, C, DC, Z
Affects
Affects
Affects
fr, Z
fr, Z
fr
0000 101f ffff SUB fr, W
1100 kkkk kkkk MOV W, #lit
0000 101f ffff SUB fr, W
0010 000f ffff MOV W, fr
0000 101f ffff SUB fr, W
0110 bbbf ffff SNB op.bit
0000 111f ffff DEC fr
0111 bbbf ffff SB
0000 111f ffff DEC fr
0011 101f ffff SWAP fr
Subtract src_bit from dest
Subtract src from dest
Swap nibbles in dest
Coding
Coding
Coding
op.bit
Related parts for 45181
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Terminals 3 Pin Single Row Header (long)
Manufacturer:
Parallax Inc
Part Number:
Description:
Headers & Wire Housings 16 Pin Single Row Header
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: