45181 Parallax Inc, 45181 Datasheet - Page 130

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
13 Appendix C: SX Instruction Set
CSNE
Operation: op1 is compared to op2. If op1 is not equal to op2, the following instruction word is skipped. W is left
Note:
DEC
Operation: dest is decremented. Z will be set to 1 if the result was 0; otherwise, Z will be cleared to 0. The MOV W, -
DECSZ dest
Operation: dest is decremented. If result is 0, the next instruction word will be skipped.
Note:
Page 130 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
1) CSNE
2) CSNE
1) DEC
1) DECSZ fr
Command
Command
Command
op1, op2
fr, #literal
fr1, fr2
holding the result of op1 - op2. If CARRYX is specified, c affects the result. Insert an STC before command to
avoid strange results.
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following CSNE is a single-word instruction.
dest
fr
-fr command is similar to DEC fr, except the result is moved to W, and fr keeps its original contents.
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following DECSZ is a single-word instruction.
Words
Words
Words
3
3
1
1
3 or 4 (skip)
3 or 4 (skip)
1 or 2 (skip)
(12 or 16)
(12 or 16)
(4 or 8)
Cycles
Cycles
Cycles
1 (4)
W, C, DC, Z
W, C, DC, Z
Affects
Affects
Affects
fr, Z
fr
Compare op1 to op2 and skip if not equal
Decrement dest and skip if zero
1100 kkkk kkkk MOV W, #lit
0000 100f ffff MOV W, fr-W
0110 0100 0011 SNZ
0010 000f ffff MOV W, fr2
0000 100f ffff MOV W, fr1-W
0110 0100 0011 SNZ
0000 111f ffff DEC fr
0010 111f ffff DECSZ fr
Coding
Coding
Coding
Decrement dest

Related parts for 45181