Question: Q 2 ) Write a program using the LMC instruction set to read two numbers from the user and display the greater number. Show the

Q2) Write a program using the LMC instruction set to read two numbers from the user and display the greater number. Show the address, mnemonic code, and numeric code.
Q3) The following Little Man program is supposed to add two input numbers, subtract a third input number from the sum, and output the result, i.e., OUT =IN1+IN2-IN3. There is an error in this program and the output it generates. What is it? Modify the program so that it produces the correct result. Submit the modified program with your answer.
\table[[Address,Mnemonic Code,Numeric Code],[00,IN,901],[01,STO 99,399],[02,IN,901],[03,ADD 99,199],[04,STO 99,399],[05,IN,901],[06,SUB 99,299],[07,OUT,902],[08,HALT,000]]
CIS/CSC please help
Q 2 ) Write a program using the LMC instruction

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