0

In an sll instruction in MIPS, it can only take 5-bits. How would the shift work if the shift amount was more than 31? How do we represent that with 5-bits?

Thanks

darksky
  • 20,411
  • 61
  • 165
  • 254

1 Answers1

2

You cannot. SLL is only for 32-bit values, where shifting more than 31 places makes no sense. Use DSLL/DSLL32 or DSLLV for 64-bit values.

ninjalj
  • 42,493
  • 9
  • 106
  • 148
  • Oh right - stupid question I'm sorry I got carried away with my complicated project that now I'm over-complicating everything. – darksky Oct 29 '11 at 17:02