English
Language : 

45111 Datasheet, PDF (128/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
13 Appendix C: SX Instruction Set
CSAE op1, op2
Compare op1 to op2 and skip if above or equal
Command
1) CSAE fr, #literal
2) CSAE fr1, fr2
Words
3
3
Cycles
3 or 4 (skip)
(12 or 16)
3 or 4 (skip)
(12 or 16)
Affects
W, C, DC, Z
W, C, DC, Z
Coding
1100 kkkk kkkk MOV W, #lit
0000 100f ffff MOV W, fr-W
0111 0000 0011 SC
0010 000f ffff MOV W, fr2
0000 100f ffff MOV W, fr1-W
0111 0000 0011 SC
Operation: op1 is compared to op2. If op1 is greater than or equal to op2, the following instruction word is skipped.
W is left holding the result of op1 - op2. If CARRYX is specified, c affects the result. Insert an STC before
command to avoid strange results.
Note:
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following CSAE is a single-word instruction.
CSB op1, op2
Compare op1 to op2 and skip if below
Command
1) CSB fr, #literal
2) CSB fr1, fr2
Words
3
3
Cycles
3 or 4 (skip)
(12 or 16)
3 or 4 (skip)
(12 or 16)
Affects
W, C, DC, Z
W, C, DC, Z
Coding
1100 kkkk kkkk MOV W, #lit
0000 100f ffff MOV W, fr-W
0110 0000 0011 SNC
0010 000f ffff MOV W, fr2
0000 100f ffff MOV W, fr1-W
0110 0000 0011 SNC
Operation: op1 is compared to op2. If op1 is less than op2, the following instruction word is skipped. W is left
holding the result of op1 - op2. If CARRYX is specified, c affects the result. Insert an STC before command to
avoid strange results.
Note:
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following CSB is a single-word instruction.
Page 128 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.