Instruction Set
13-4
13.1.3 3-Operand Instructions
Whereas 2-operand instructions have a single source operand (or shift
count)
and a destination operand, 3-operand instructions can have two source operands
(or one source operand and a
count operand) and a destination operand. A source
operand can be a memory word or a register. The destination of a 3-operand
instruction is always a register.
Table 13–3 lists the instructions that have 3-operand versions. You can omit
the
3 in the mnemonic from 3-operand instructions (see subsection 13.6.2 on
page 13-34).
Table 13–3. 3-Operand Instructions
Instruction
Description
Instruction
Description
ADDC3
Add with carry
MPYF3
Multiply floating-point values
ADDF3
Add floating-point values
MPYI3
Multiply integers
ADDI3
Add integers
OR3
Bitwise-logical OR
AND3
Bitwise-logical AND
SUBB3
Subtract integers with borrow
ANDN3
Bitwise-logical AND with complement
SUBF3
Subtract floating-point values
ASH3
Arithmetic shift
SUBI3
Subtract integers
CMPF3
Compare floating-point values
TSTB3
Test bit fields
CMPI3
Compare integers
XOR3
Bitwise-exclusive OR
LSH3
Logical shift
13.1.4 Program-Control Instructions
The program-control instruction group consists of all of those instructions (17)
that affect program flow. The repeat mode allows repetition of a block of code
(RPTB) or of a single line of code (RPTS). Both standard and delayed
(single-cycle) branching are supported. Several program-control instructions
can perform conditional operations. (See Section 13.5 on page 13-28
for detailed information on condition codes.) Table 13–4 lists the program-
control instructions.