English
Language : 

45111 Datasheet, PDF (143/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
13 Appendix C: SX Instruction Set
SZ
Skip if zero flag set
1) SZ
Command
Words
1
Cycles
1 or 2 (skip)
(4 or 8)
Affects
PC
Coding
0111 0100 0011 SZ
Operation: If Z 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 SZ is a single-word instruction.
TEST src
Command
1) TEST fr
2) TEST w
Words
1
1
Cycles
1 (4)
1 (4)
Affects
Z
Z
Operation: The Z flag will be set if src is 0; otherwise, Z will be cleared.
Test src for zero
Coding
0010 001f ffff TEST fr
1101 0000 0000 TEST w
XOR dest, src
XOR src into dest
Command
1) XOR fr, W
2) XOR fr, #literal
3) XOR
4) XOR
5) XOR
fr1, fr2
W, fr
W, #literal
Words
1
2
2
1
1
Cycles
1 (4)
2 (8)
2 (8)
1 (4)
1 (4)
Affects
fr, Z
fr, W, Z
fr, W, Z
W, Z
W, Z
Coding
0001 101f ffff XOR fr, W
1100 kkkk kkkk MOV W, #lit
0001 101f ffff XOR fr, W
0010 000f ffff MOV W, fr2
0001 101f ffff XOR fr1, W
0001 100f ffff XOR W, fr
1111 kkkk kkkk XOR W, #lit
Operation: src is XOR’d into dest. Z will be set if the result was zero; otherwise, Z will be cleared.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 143