Question: Note: instructions 0 0 through 0 4 have already executed. Your program begins with instruction 0 5 . Note: the blocks in the table below

Note: instructions 00 through 04 have already executed. Your program begins with instruction 05.
Note: the blocks in the table below that contain "..." indicate a series of empty mailboxes. No instructions are needed for those.
Write an LMC program that does the following:
1. Reads 3 inputs (one at a time) and places them in mailbox (memory) locations 80,81, and 82, respectively. (Hint: 6 instructions)
2. ADDS the first two numbers and SUBTRACTS the third number (in that order).(Hint: 3 instructions)
3. Stores the result of that calculation in mailbox 83 and then writes it to the outbox. (Hint: 2 instructions)
4. Halts (enter either HLT or 000 in \(\mathrm{IN} ; 9012\))
You may write the instructions in either mnemonic form (ALL CAPS e.g. STO 80) or code form (e.g.380). Fill in each blank with only the contents of the mailbox (no notes or explanations)
Note: instructions 0 0 through 0 4 have already

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!