Question: I need help with this binary program. The program will be loaded at memory cell x3000, the first line is 0011 0000 0000 0000; add
I need help with this binary program.
The program will be loaded at memory cell x3000, the first line is 0011 0000 0000 0000; add two numbers


Semicolons allow us to put comments in our programs. The Program: Use the following procedure to construct the program. The binary-program template below should help to organize the bits. Test your program by running it on the LC-3 with data numbers entered manually in the appropriate memory cells. Choose registers in order from the list R1, R2, R3, ... R6. Because R0 and R7 are special we will avoid them as general-purpose registers. The RiggX grader assumes these choices. - Problem: Add two integers, which are stored in two memory cells, and write the sum to a third memory cell. - Assume: that the first number is in memory cell x3010, and the second in memory cell x3011. The sum should be placed in memory cell x3012. - Read the first number into a register. - Read the second number into a register - Add the numbers in the two registers, writing the result to a third register. - Write the sum to memory cell x3012. - Your program should consist of four instructions. Your task is to choose and format the particular LC-3 instructions needed to perform each task. Note that the data-numbers are a short distance away from the program itself
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
