
C165UTAH
Instruction Set Summary
Data Sheet
508
2001-02-23
24
Instruction Set Summary
This chapter briefly summarizes the C165UTAH's instructions ordered by instruction
classes. This provides a basic understanding of the C165UTAH’s instruction set, the
power and versatility of the instructions and their general usage.
A detailed description
of each single instruction, including its operand data type,
condition flag settings, addressing modes, length (number of bytes) and object code
format is provided in the
“Instruction Set Manual”
for the C16x Family. This manual
also provides tables ordering the instructions according to various criteria, to allow quick
references.
Summary of Instruction Classes
Grouping the various instruction into classes aids in identifying similar instructions (eg.
SHR, ROR) and variations of certain instructions (eg. ADD, ADDB). This provides an
easy access to the possibilities and the power of the instructions of the C165UTAH.
Note:
The used mnemonics refer to the detailled description.
Arithmetic Instructions
Addition of two words or bytes:
Addition with Carry of two words or bytes:
Subtraction of two words or bytes:
Subtraction with Carry of two words or bytes:
16
*
16 bit signed or unsigned multiplication:
16/16 bit signed or unsigned division:
32/16 bit signed or unsigned division:
1's complement of a word or byte:
2's complement (negation) of a word or byte:
ADD
ADDC
SUB
SUBC
MUL
DIV
DIVL
CPL
NEG
ADDB
ADDCB
SUBB
SUBCB
MULU
DIVU
DIVLU
CPLB
NEGB
Logical Instructions
Bitwise ANDing of two words or bytes:
Bitwise ORing of two words or bytes:
Bitwise XORing of two words or bytes:
AND
OR
XOR
ANDB
ORB
XORB
Compare and Loop Control Instructions
Comparison of two words or bytes:
Comparison of two words with post-increment
by either 1 or 2:
Comparison of two words with post-decrement
by either 1 or 2:
CMP
CMPB
CMPI1
CMPI2
CMPD1
CMPD2