Question: 3. Given the following LMC program: 1. INP 2. STA 13 3. INP 4. STA 14 5. LDA 13 6. SUB 14 7. BRP

3. Given the following LMC program: 1. INP 2. STA 13 3.

 

3. Given the following LMC program: 1. INP 2. STA 13 3. INP 4. STA 14 5. LDA 13 6. SUB 14 7. BRP 11 8. LDA 14 9. OUT 10. HLT 11. LDA 13 12. HLT 13. DAT 14. DAT A) What does the program do? B) Translate the mnemonics into machine code C) Find or write a comparable program in any high level language (ie: JavaScript, C++, etc) D) What are the biggest differences between the high level code that you found/wrote on #3 and the low level LMC code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

A This LMC program reads two input values subtracts the second from the first and outputs the result ... View full answer

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 Programming Questions!