Question: Notice that the first machine language instruction in memory is shaded. Let's interpret this instruction. The opcode is 0 0 0 0 , which indicates

Notice that the first machine language instruction in memory is shaded. Let's interpret this instruction. The opcode is 0000, which indicates a load instruction. The address is 000000000101 which is binary for decimal 5. Thus, the instruction should load the value stored at address 5 into the register R. Memory location 5 contains a binary 2. So, an appropriate interpretation for this instruction would be "The value 2 stored in location 5 is to be loaded into R."
Download the document lab_09_01.docx. Using the table within the document complete the following. Copy down the binary form of this instruction and the interpretation of what the instruction should do when executed.
Next, click the Step button. This will execute the first instruction. Note what happens to the contents of the registers, and that the next instruction is now shaded. Now repeat the process of writing down the instruction and your interpretation of it, and stepping through it, until a message box appears that signals the halting of the program. If you need help, look in Table 9.1, or click the Opcodes button. What is the main function of the program? Is there any output in the output window?
Once you have completed the table and answered the questions, save your file with your last name in the file name (Example: lab_09_01_Jones.doc). To upload and submit your assignment, click the Choose File button below to find and select your saved document.Table 9.1 Opcodes and their meanings
 Notice that the first machine language instruction in memory is shaded.

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 Databases Questions!