Question: Explicitly write the following LC3 code. Do not write in AVR assembly, write in LC3 assembly In this problem, you will write an assembly code
In this problem, you will write an assembly code that will implement a circular left shift by 6 bits. If you have a binary string 00000011 then the result after circular left shifting by 6 bits will be 11000000. The program we want you to design should take in a 16-bit value at memory location Loc1. Implement the circular left shifting operation by 6 bits and store the 16-bit result in Loc2. You can declare the memory locations Loc1 and Loc2 using BLKW directive. For example, if [Loc1]-0xF000 then after execution of the program [Loc2] -Ox003C. Your code should start at memory location 0x3000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
