Contents

These are the basic operations used for addition, subtraction, and multiplication. Note that any of these arithmetic instructions may take a register or an immediate value as the op2 parameter. All other parameters (rd and rs1 must be registers).

Instruction:

add

Adds rs1 and op2, and stores result in rd.

Instruction:

addcc

Same as above, except that it sets the condition codes.

Instruction:

sub

subtracts op2 from rs1, and stores the difference in rd

Instruction:

subcc

same as above, except that it sets the condition codes.

Instruction:

mulcc

Performs a single step in the multiplication operation. Stores partial results in register Y. Complete multiplication algorithms are discussed in more detail later.