45181 Parallax Inc, 45181 Datasheet - Page 135

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
MOV
Operation: Src is moved into dest. Z will be set if the result is 0; otherwise, Z will be cleared. W is left holding the
1)
2)
3)
4)
5)
6)
7)
8)
9)
10) MOV
11) MOV
12) MOV
13) MOV
14) MOV
15) MOV
16) MOV
17) MOV
18) MOV
19) MOV
20) MOV
21) MOV
22) MOV
23) MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
Command
dest, src
fr, W
fr, #literal
fr1, fr2
fr, M
W, fr
W, /fr
W, fr-W
W, ++fr
W, --fr
W, <<fr
W, >>fr
W, <>fr
W, #literal
W, M
M, fr
M, W
M, #literal
!OPTION, fr
!OPTION, W
!OPTION, #literal
!port, fr
!port, W
!port, #literal
source value in command number 2, 3, 4, 18, 20, 21 and 23. C will be cleared if an underflow occurred;
otherwise, C will be set to 1 in command number 7, 10 and 11. DC will be cleared if an underflow
occurred in the lowest nibble; otherwise, DC will be set in command number 7. The value of C will be
shifted into the LSB or MSB of W in command #10 and #11, respectively. C will be set to the previous
MSB or LSB of fr in command #10 and #11 respectively. Command #12 moves the nibble-swapped value
of fr into w. Instructions #6 through #12 are similar to NOT, SUB, INC, DEC, RL, RR and SWAP
instructions, respectively, but have the additional feature of moving the result to W. Only 4 bits are
affected by #17; use #13 followed by #16 to affect 5 bits in the SX48/52. If CARRYX is specified, c affects the result
of command #7. Insert an STC before command #7 to avoid strange results.
Words
1
2
2
2
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
2
2
1
2
Cycles
1 (4)
2 (8)
2 (8)
2 (8)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
1 (4)
2 (8)
1 (4)
1 (4)
2 (8)
1 (4)
2 (8)
2 (8)
1 (4)
2 (8)
13 Appendix C: SX Instruction Set
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 135
W, C, DC, Z
W, Z, OPT
W, Z, !port
!port, (W)
fr1, W, Z
W, M, Z
W, OPT
W, !port
Affects
fr, W
fr, W
W, Z
W, Z
W, Z
W, Z
W, C
W, C
OPT
W
W
W
M
M
fr
0000 001f ffff MOV fr, W
1100 kkkk kkkk MOV W, #lit
0000 001f ffff MOV fr, W
0010 000f ffff MOV W, fr2
0000 001f ffff MOV fr1, W
0000 0100 0010 MOV W, M
0000 001f ffff MOV fr, W
0010 000f ffff MOV W, fr
0010 010f ffff MOV W, /fr
0000 100f ffff MOV fr-W
0010 100f ffff MOV W, ++fr
0000 110f ffff MOV W, --fr
0011 010f ffff MOV W, <<fr
0011 000f ffff MOV W, >>fr
0011 100f ffff MOV W, <>fr
1100 kkkk kkkk MOV W, #lit
0000 0100 0010 MOV W, M
0010 000f ffff MOV W, fr
0000 0100 0011 MOV M, W
0000 0100 0011 MOV M, W
0000 0101 kkkk MOV M, #lit
0010 000f ffff MOV W, fr
0000 0000 0010 MOV !OPT, W
0000 0000 0010 MOV !OPT, W
1100 kkkk kkkk MOV W, #lit
0000 0000 0010 MOV !OPT, W
0010 000f ffff MOV W, fr
0000 0000 0fff MOV !port, W
0000 0000 0fff MOV !port, W
1100 kkkk kkkk MOV W, #lit
0000 0000 0fff MOV !port, W
Move src into dest
Coding

Related parts for 45181