Discuss a little man computer program


Discuss the below:

Q: The following LMC (Little Man Computer) program is supposed to input two numbers, compare them, and output the higher of the two numbers. There is something wrong with this program:

Mailbox Mnemonic Code
01 IN 901
02 STO 90 390
03 IN 901
04 STO 91 391
05 SUB 90 290
06 BRP 10 810
07 LDA 91 591
08 OUT 902
09 COB 000
10 LDA 90 590
11 OUT 902
12 COB 000

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Discuss a little man computer program
Reference No:- TGS01939324

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)