Question: Write an LC3 program to divide X by Y. The result comes as Q (quotient), and R (remainder). X/Y [Q, R] (All 16 bit values.)

Write an LC3 program to divide X by Y. The result comes as Q (quotient), and R (remainder). X/Y [Q, R] (All 16 bit values.) 1. Using the overall data path in Figure 5.18, identify the elements that implement the ADD instruction of Figure 5.5. 2. Using the overall data path in Figure 5.18, identify the elements that implement the LD instruction of Figure 5.6. 3. Using the overall data path in Figure 5.18, identify the elements that implement the LDI instruction of Figure 5.7. 4. Using the overall data path in Figure 5.18, identify the elements that implement the LDR instruction of Figure 5.8. 5. Using the overall data path in Figure 5.18, identify the elements that implement the LEA instruction of Figure 5.9. 6. For the instructions ADD, LDR, and JMP, write the operations that occur in each phase of the instruction cycle. 7. If the computer requires on the average eight cycles to process each instruction, and the computer processes instructions one at a time from beginning to end, how many instructions can the computer process in 1 second?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!