Toshiba TX39 Computer Hardware User Manual


 
Architecture
185
SUB Subtract SUB
31 26 25 21 20 16 15 11 10 6 5 0
SPECIAL
000000
rs rt rd
0
00000
SUB
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