SUB
31
26
25
SPECIAL
0 0 0 0 0 0
6
Format:
sub rd, rs, rt
Description:
The contents of general register
result. The result is placed into general register
Since the RSP does not signal an overflow exception for SUB, this command behaves identically to
SUBU.
Operation:
GPR[rd] GPR[rs] – GPR[rt]
T:
Exceptions:
None
Revision 1.0
Subtract
21
20
16
15
rs
rt
5
5
rt
are subtracted from the contents of general register
11 10
6
5
rd
0
0 0 0 0 0
5
5
rd.
SUB
0
SUB
1 0 0 0 1 0
6
rs
to form a
227