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.,

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.

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 OUT 902 07 08 000 COB

Step by Step Solution

3.49 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The program actually outputs IN3 IN1 IN2 the negative ... 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

Document Format (2 attachments)

PDF file Icon

1806_60b8c1213ebc1_721414.pdf

180 KBs PDF File

Word file Icon

1806_60b8c1213ebc1_721414.docx

120 KBs Word File

Students Have Also Explored These Related Computer Architecture Questions!