IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
87
xor fr,w
XOR fr,W into fr
1
0001 101f ffff ffff
Z
xor w,fr
XOR W,fr into W
1
0001 100f ffff ffff
Z
xor w,#lit8
XOR W,literal
into W
1
0111 1111 kkkk kkkk
Z
Table 3-3 Logical Instructions (continued)
Assembler
Syntax
Description
Opcode
Table 3-4 Arithmetic and Shift Instructions
Assembler
Syntax
Description
Opcode
add fr,w
Add fr,W into fr
1
0001 111f ffff ffff C, DC, Z
add w,fr
Add W,fr into W
1
0001 110f ffff ffff C, DC, Z
add w,#lit8
Add W,literal into
W
1
0111 1011 kkkk kkkk C, DC, Z
addc fr,w
Add carry,W,fr
into fr
1
0101 111f ffff ffff C, DC, Z
addc w,fr
Add carry,W,fr
into W
1
0101 110f ffff ffff C, DC, Z
clr fr
Clear fr
1
0000 011f ffff ffff
Z
cmp w,fr
Compare W,fr
then update
STATUS
1
0000 010f ffff ffff C, DC, Z