Instruction Set ArchitectureIP2022 Users Manual
92
www.ubicom.com
sub fr,w
Subtract W from
fr into fr
1
0000 101f ffff ffff C, DC, Z
sub w,fr
Subtract W from
fr into W
1
0000 100f ffff ffff C, DC, Z
sub w,#lit8
Subtract W from
literal into W
1
0111 1010 kkkk kkkk C, DC, Z
subc fr,w
Subtract carry,W
from fr into fr
1
0100 101f ffff ffff C, DC, Z
subc w,fr
Subtract carry,W
from fr into W
1
0100 100f ffff ffff C, DC, Z
swap fr
Swap high,low
nibbles of fr into
fr
1
0011 101f ffff ffff
None
swap w,fr
Swap high,low
nibbles of fr into
W
1
0011 100f ffff ffff
None
test fr
Test fr for zero
1
0010 001f ffff ffff
Z
Table 3-4 Arithmetic and Shift Instructions (continued)
Assembler
Syntax
Description
Opcode