Toshiba TX39 Computer Hardware User Manual


 
Architecture
182
SRAV Shift Right Arithmetic Variable SRAV
31 26 25 21 20 16 15 11 10 6 5 0
SPECIAL
000000
rs rt rd
0
00000
SRAV
000111
6 5 5 5 5 6
Format :
SRAV rd, rt, rs
Description :
Right-shifts the contents of general-purpose register rt (by the number of bits designated in the low-
order five bits of general-purpose register rs), sign-extends the high-order bits, and puts the result in
register rd.
Operation :
T:
s GPR[rs]
4..0
GPR[rd] (GPR[rt]
31
)
s
|| GPR[rt]
31..s
Exceptions :
None