Question: Write the LMC program that reads in two numbers (one at a time); places them in memory locations 50 and 51, respectively; calculates their positive

Write the LMC program that reads in two numbers (one at a time); places them in memory locations 50 and 51, respectively; calculates their positive difference; places this difference in memory locations 52; and writes the result (difference) out. Do not use numeric codes for operation codes. Use mnemonics.

Write the program on a scratchpad first and then copy it into the answer window.

Address Instruction (Mnemonics)

00 IN 01 .... 02 .... .... .... .... ....

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!