Question: Summary For this lab you will implement a basic LC 3 assembly program which calculates the sum of all odd numbers stored between x 3
Summary
For this lab you will implement a basic LC assembly program which calculates the sum of
all odd numbers stored between x and xFF inclusive.
Program Details
Your program will start at x in memory and sum all odd numbers stored at memory
locations x to xFF Please note that while the autograder will populate these memory
address with data values, when testing your program, you will need to place these values into
memory manually. I recommend doing so by modifying the memory values via the simulator
rather than using assembly code. Because the range of values is so large, I recommend
placing a few values at the start of the memory range and a few at the end leaving the middle
addresses empty. This will allow you to both confirm that your program is covering all
necessary memory locations and also produce a result which is easy to verify.
The final sum will be stored at memory location x Once stored, your program will halt
the machine using the HALT command.
You must place any FILL pseudoops after your HALT command. Placing FILL pseudo
ops before the HALT will cause the data stored at those locations to be executed as
instructions. This can cause your code to produce unexpected results and prevent
Gradescope from executing correctly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
