The following Little Man program is supposed to add two input numbers, subtract a third input number

Question:

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

mailbox mnemonic code numeric code 00 901 IN 399 01 STO 99 02 IN 901 03 ADD 99 199 04 STO 99 399 05 IN 901 SUB 99 06 299

What is wrong with this program? Modify the program so that it produces the correct result.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer: