Architecture

Table 3-5. Three-operand register-type instructions

Instruction

Format and Description

 

 

 

 

 

 

 

 

op

rs

rt

rd

0

 

funct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Add

ADD rd, rs, rt

 

 

 

 

 

 

 

 

Add the contents of registers rs and rt, and store the result in register rd. An

 

exception is raised in the event of a two’s-complement overflow.

 

 

Add Unsigned

ADDU rd, rs, rt

 

 

 

 

 

 

 

 

Add the contents of registers rs and rt, and store the result in register rd. No

 

exception is raised on a two’s-complement overflow.

 

 

 

 

Subtract

SUB rd, rs, rt

 

 

 

 

 

 

 

 

Subtract the contents of register rt from rs, and store the result in register rd.

 

An exception is raised in the event of a two’s-complement overflow.

 

 

Subtract

SUBU rd, rs, rt

 

 

 

 

 

 

 

Unsigned

Subtract the contents of register rt from rs, and store the result in register rd.

 

No exception is raised on a two’s-complement overflow.

 

 

 

 

Set on Less

SLT rd, rs, rt

 

 

 

 

 

 

 

Than

Compare the contents of registers rt and rs as 32-bit signed integers. If rs is

 

less than rt, store 1 in rd as the result; otherwise store 0 in rd.

 

 

Set on Less

SLTU rd, rs, rt

 

 

 

 

 

 

 

Than Unsigned

Compare the contents of registers rt and rs as 32-bit unsigned integers. If rs is

 

less than rt, store 1 in rd as the result; otherwise store 0 in rd.

 

 

AND

AND rd, rs, rt

 

 

 

 

 

 

 

 

Bitwise AND the contents of registers rs and rt, and store the result in register

 

rd.

 

 

 

 

 

 

 

OR

OR rd, rs, rt

 

 

 

 

 

 

 

 

Bitwise OR the contents of registers rs and rt, and store the result in register rd.

Exclusive OR

XOR rd, rs, rt

 

 

 

 

 

 

 

 

Bitwise Exclusive-OR the contents of registers rs and rt, and store the result in

 

register rd.

 

 

 

 

 

 

 

NOR

NOR rd, rs, rt

 

 

 

 

 

 

 

 

Bitwise NOR the contents of registers rs and rt, and store the result in register

 

rd.

 

 

 

 

 

 

 

28

Page 37
Image 37
Toshiba TX39 user manual Nor