XC2287 / XC2286 / XC2285
XC2000 Family Derivatives
Preliminary
Functional Description
3.17
Instruction Set Summary
Table 8 lists the instructions of the XC228x in a condensed way.
The various addressing modes that can be used with a specific instruction, the operation
of the instructions, parameters for conditional execution of instructions, and the opcodes
for each instruction can be found in the “Instruction Set Manual”.
This document also provides a detailed description of each instruction.
Table 8
Instruction Set Summary
Description
Mnemonic
ADD(B)
Bytes
2 / 4
2 / 4
2 / 4
2 / 4
2
Add word (byte) operands
ADDC(B)
SUB(B)
Add word (byte) operands with Carry
Subtract word (byte) operands
Subtract word (byte) operands with Carry
SUBC(B)
MUL(U)
(Un)Signed multiply direct GPR by direct GPR
(16- × 16-bit)
DIV(U)
(Un)Signed divide register MDL by direct GPR (16-/16-bit) 2
(Un)Signed long divide reg. MD by direct GPR (32-/16-bit) 2
DIVL(U)
CPL(B)
Complement direct word (byte) GPR
Negate direct word (byte) GPR
Bitwise AND, (word/byte operands)
Bitwise OR, (word/byte operands)
Bitwise exclusive OR, (word/byte operands)
Clear/Set direct bit
2
NEG(B)
AND(B)
OR(B)
2
2 / 4
2 / 4
2 / 4
2
XOR(B)
BCLR/BSET
BMOV(N)
Move (negated) direct bit to direct bit
4
BAND/BOR/BXOR AND/OR/XOR direct bit with direct bit
4
BCMP
Compare direct bit to direct bit
4
BFLDH/BFLDL
Bitwise modify masked high/low byte of bit-addressable
direct word memory with immediate data
4
CMP(B)
CMPD1/2
CMPI1/2
PRIOR
Compare word (byte) operands
2 / 4
Compare word data to GPR and decrement GPR by 1/2 2 / 4
Compare word data to GPR and increment GPR by 1/2
2 / 4
2
Determine number of shift cycles to normalize direct
word GPR and store result in direct word GPR
SHL/SHR
Data Sheet
Shift left/right direct word GPR
2
69
V0.91, 2007-02
Draft Version