Question: The C language permits a variable to be left- or right-shifted by a nonconstant amount (e.g. i >> j where i and j are variables),
The C language permits a variable to be left- or right-shifted by a nonconstant amount (e.g. i >> j where i and j are variables), but the MIPS instruction set only supports shifts by a constant value (e.g. i >> 2). In words rather than code, describe how a variable-length right shift could be performed using MIPS instructions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
