Architecture

SUB

Subtract

SUB

 

31

26 25

21 20

16 15

11 10

6 5

0

 

 

SPECIAL

 

rs

 

rt

 

 

rd

 

0

 

SUB

 

 

 

 

 

 

 

 

 

 

 

 

 

000000

 

 

 

 

 

 

 

 

00000

 

100010

 

 

6

5

5

 

 

5

 

5

 

6

 

Format :

SUB rd, rs, rt

Description :

Subtracts the contents of general-purpose register rt from general-purpose register rs and puts the result in general-purpose register rd. If carry-out bits 31 and 30 differ, a two's complement overflow exception is raised and destination register rd is not modified.

Operation :

T:GPR[rd] GPR[rs] - GPR[rt]

Exceptions :

Overflow exception

185

Page 196
Image 196
Toshiba TX39 user manual Sub