Question: Write an LC-3 ML program that shifts/rotates a bit pattern found in register R0 to the left by a certain amount (a number between 0
Write an LC-3 ML program that shifts/rotates a bit pattern found in register R0 to the left by a certain amount (a number between 0 and 16, including 0 and 16) and store the shifted result in register R1 and the rotated result in register R3. The number of bits the bit pattern should be can be found in R2. Shift amount is a non-negative number between 0 and 16, inclusive (that is 0 and 16 are valid shift amounts).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
