Question: Write an LMC program (with instructions): The program will input two integers (ranging from 0 to 999). The program will output 0 if the first

Write an LMC program (with instructions):

The program will input two integers (ranging from 0 to 999). The program will output 0 if the first input is strictly greater than the second number, it will output 1 if the first input is equal to the second input, and output 2 if the first number is strictly less than the second number. The program will run continuously in that it will continue to accept pairs of inputs, provide outputs, and never halt.

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!