Assembly:

SRA rt, rs, shift

nanoMIPS

Shift Right Arithmetic

Purpose:

Shift Right Arithmetic. Right shift word value in register $rs by amount shift, duplicatingthe sign bit (bit 31) in the emptied bits. Place the result in register $rt.

Availability:

nanoMIPS

Format:

100000

rt

rs

1100

x

0100

shift

6

5

5

4

3

4

5

Operation:

GPR[rt] = GPR[rs] >> shift

Exceptions:

None.