45181 Parallax Inc, 45181 Datasheet - Page 123

SX TECH TOOL KIT NO POWER

45181

Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet

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
ADD
Operation: src is added into dest. C will be set if an overflow occurs; otherwise, C will be cleared. DC will be set if
ADDB
Operation: src_bit is added into dest. If fr is incremented, Z will be set if the result is 0; otherwise, Z will be cleared.
AND
Operation: src is ANDed into dest. Z will be set if the result is 0; otherwise, Z will be cleared. W is left holding the
1) ADD
2) ADD
3) ADD
4) ADD
1) ADDB
2) ADDB
1) AND
2) AND
3) AND
4) AND
5) AND
Command
Command
Command
dest, src
fr, W
fr, #literal
fr1, fr2
W, fr
an overflow occurs in the lower nibble; otherwise, DC will be cleared. Z will be set if the result is 0;
otherwise, Z will be cleared. W is left holding the source value in command #2 and #3. If CARRYX is
specified, C is added to result. Insert a CLC before the first Add on a register to avoid strange results.
dest, src_bit
fr, op.bit
fr, /op.bit
This instruction is useful for adding the carry into the upper byte of a double-byte sum after the lower
byte has been computed.
dest, src
fr, W
fr, #literal
fr1, fr2
W, fr
W, #literal
source value in command #2 and #3.
Words
Words
Words
1
2
2
1
2
2
1
2
2
1
1
Cycles
Cycles
Cycles
1 (4)
2 (8)
2 (8)
1 (8)
2 (8)
2 (8)
1 (4)
2 (8)
2 (8)
1 (4)
1 (4)
13 Appendix C: SX Instruction Set
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 123
fr, W, C, DC, Z
fr, W, C, DC, Z
W, C, DC, Z
fr, C, DC, Z
fr1, W, Z
fr, W, Z
Affects
Affects
Affects
W, Z
W, Z
fr, Z
fr, Z
fr, Z
0001 111f ffff ADD fr, W
1100 kkkk kkkk MOV W, #lit
0001 111f ffff ADD fr, W
0010 000f ffff MOV W, fr2
0001 111f ffff ADD fr1, W
0001 110f ffff ADD W, fr
0110 bbbf ffff SNB op.bit
0010 101f ffff INC fr
0111 bbbf ffff SB
0010 101f ffff INC fr
0001 011f ffff AND fr, W
1100 kkkk kkkk MOV W, #lit
0001 011f ffff AND fr, W
0010 000f ffff MOV W, fr2
0001 011f ffff AND fr1, W
0001 010f ffff AND W, fr
1110 kkkk kkkk AND W, #lit
Add src_bit into dest
AND src into dest
Add src into dest
Coding
Coding
Coding
op.bit

Related parts for 45181