Question: In this exercise, I'm allowed to use an lc-3 simulator but I do not know to input this into the simulator here is the program:
In this exercise, I'm allowed to use an lc-3 simulator but I do not know to input this into the simulator here is the program:

I hope this table helps you solving this faster

Binary Program One: Adding Three Integers The program should start at memory address 3000. Here is the header: 0011000000000000 ; bprogram1.bits adds three numbers FL Choose registers in order from the list R 1,R2,R3,,R6. Because R0 and R7 are special we avoid them as general purpose registers. The RiggX grader assumes these choices. - Problem: Add three integers in three memory cells and write the sum to a fourth memory cell. - Assume: The first number is in cell x400F, the second in cell x4010, the third in cell x4011, and the sum should be placed in cell 300C. - Load the address x400F of the firat number into a first register. - Read the first number into a second register using LDR; call this the total register. - Read the second number into a third register using LDR; call this the increment register. - Add the increment to the total. - Read the third number into the increment register using LDR. - Add the increment to the total. - Write the value in total to memory cell x300C using sT. - Write the TRAP instruction xF025 to stop execution. - Include the address x400F immediately after the HALT instruction. - Including this data, your program should consist of nine lines. Program Construction Table File: bprogram1.bits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
