English
Language : 

45111 Datasheet, PDF (136/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
13 Appendix C: SX Instruction Set
MOVB dest_bit, src_bit
Move src_bit to dest_bit
Command
1) MOVB op.bit1, op.bit2
Words
4
Cycles
4 (16)
2) MOVB op.bit1, /op.bit2
4
4 (16)
Affects
op.bit1
op.bit1
Coding
0111 bbbf ffff SB op.bit2
0100 bbbf ffff CLRB op.bit1
0110 bbbf ffff SNB op.bit2
0101 bbbf ffff SETB op.bit1
0110 bbbf ffff SNB op.bit2
0100 bbbf ffff CLRB op.bit1
0111 bbbf ffff SB op.bit2
0101 bbbf ffff SETB op.bit1
Operation: src_bit is moved into dest_bit in command #1. The one’s complement of src_bit is moved into dest_bit in
command #2.
MOVSZ dest, src
Move incremented or decremented src to dest and skip if zero
Command
1) MOVSZ W, ++fr
2) MOVSZ W, --fr
Words
1
1
Cycles
1 or 2 (skip)
(4 or 8)
1 or 2 (skip)
(4 or 8)
Affects
W
W
Coding
0011 110f ffff MOVSZ W, ++fr
0010 110f ffff MOVSZ W, --fr
Operation: The incremented value (command #1) or decremented value (command #2) of src is moved into dest.
The next instruction word will be skipped if the result was 0.
Note:
Only one word is skipped by this instruction. To avoid strange results, make sure that any instruction
following MOVSZ is a single-word instruction.
NOP
Command
1) NOP
Words
1
Cycles
1 (4)
Affects
none
Operation: None. This instruction is useful to adjust the timing of a routine.
No operation
Coding
0000 0000 0000 NOP
Page 136 • SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc.