Question: Consider a more realistic alternative: Suppose a small program is permanently stored in the last few mailbox locations. A BRANCH instruction at location 00, also
Consider a more realistic alternative:
Suppose a small program is permanently stored in the last few mailbox locations. A BRANCH instruction at location 00, also permanent, will start this program. This program will accept input values and will store them at consecutive mailbox locations, starting with mailbox 01. You may assume that these values represent the instructions and data of a user’s program to be executed. When a 999 is received as input data, the program jumps to location 01 where it will proceed to execute the values just entered.
The small program described here is known as a program loader, or, under certain circumstances as a bootstrap. Write a Little Man program loader. (It may be useful to remember that instructions and data are indistinguishable. Thus, instructions could be treated as if they were data, if necessary.)
Step by Step Solution
3.54 Rating (182 Votes )
There are 3 Steps involved in it
This program uses the ability to treat instructions as data to modify a STORE instruction for inde... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
1806_60b8c1213eaa2_721412.pdf
180 KBs PDF File
1806_60b8c1213eaa2_721412.docx
120 KBs Word File
