question archive The following table represents the addresses and contents (using hexadecimal notation) of some cells in a machine's main memory
Subject:Computer SciencePrice:2.89 Bought3
The following table represents the addresses and contents (using hexadecimal notation) of some cells in a machine's main memory. Starting with this memory arrangement, follow the sequence of instructions and record the final contents of each of these memory cells:
Address Contents
00 .............. AB
01 ............... 53
02 ............... D6
03 ................ 02
Step 1, Move the contents of the cell whose address is 03 to the cell at address 00.
Step 2, Move the value 01 into the cell at address 02.
Step 3, Move the value stored at address 01 into the cell at address 03.
Record the Final Contents of Memory Cells
Let us consider the following table representing addresses and contents using hexadecimal notation of the cells in a machine's main memory:
Address |
Contents |
00 |
AB |
01 |
53 |
02 |
D6 |
03 |
02 |
We have to record the final contents of the memory cells on following the sequence of instructions.
Sequence of instructions is as follows:
Step 1: Move the contents of the cell whose address is 03 to the cell at address 00.
Step 2: Move the value 01 into the cell at address 02.
Step 3: Move the value stored at address 01 into the cell at address 03.
On following the step 1, the content at address 00 replaces with the value at the address 03. We get the contents as shown in the following table:
Address |
Contents |
Contents after step 1 |
00 |
AB |
02 |
01 |
53 |
53 |
02 |
D6 |
D6 |
03 |
02 |
02 |
In step 2, Move the value 01 into the cell at address 02 the contents are as follows:
Address |
Contents |
Contents after step 2 |
00 |
AB |
02 |
01 |
53 |
53 |
02 |
D6 |
01 |
03 |
02 |
02 |
In step 3, Move the value stored at address 01 into the cell at address 03. The contents of the memory cells are:
Address |
Contents |
Contents after step 3 |
00 |
02 |
02 |
01 |
53 |
53 |
02 |
01 |
01 |
03 |
02 |
53 |
Hence, the final contents of the main memory cells after the sequence of instructions are:
Address |
Final Contents |
00 |
02 |
01 |
53 |
02 |
01 |
03 |
53 |
please see the attached file for the complete solution.