English
Language : 

45111 Datasheet, PDF (139/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
13 Appendix C: SX Instruction Set
RL
dest
Rotate dest left
Command
1) RL
fr
Words
1
Cycles
1 (4)
Affects
fr, C
Coding
0011 011f ffff RL fr
Operation: dest is rotated left one bit. On entry, C must hold the value to be shifted into the least-significant bit of
the dest value. On exit, C will hold the previous most-significant bit of the dest value. The MOV W,<<fr
command is similar to RL fr, except the result is moved to W, and fr keeps its original contents.
RR
dest
Rotate dest right
Command
1) RR fr
Words
1
Cycles
1 (4)
Affects
fr, C
Coding
0011 001f ffff RR fr
Operation: dest is rotated right one bit. On entry, C must hold the value to be shifted into the most-significant bit of
the dest value. On exit, C will hold the previous least-significant bit of the dest value. The MOV W,>>fr
command is similar to RR fr, except the result is moved to W, and fr keeps its original contents.
SB
src_bit
Skip if src_bit is set
1) SB
Command
op.bit
Words
1
Cycles
1 or 2 (skip)
(4 or 8)
Affects
PC
Coding
0111 bbbf ffff SB op.bit
Operation: If src_bit is set, the following instruction word is skipped.
Note:
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following SB is a single-word instruction.
SC
Skip if carry is set
Command
1) SC
Words
1
Cycles
1 or 2 (skip)
(4 or 8)
Affects
PC
Coding
0111 0000 0011 SC
Operation: If C is set, the following instruction word is skipped.
Note:
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following SC is a single-word instruction.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 139