- Table 4 is showing the address location of the instructions stored in the memory. Please refer to Table 4 in order to answer Question 4 (i) to (v).
Table 4
No
|
Address
|
Instruction
|
1
|
x3000
|
1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1
|
2
|
x3001
|
0 1 0 1 0 1 1 0 1 1 1 0 0 0 0 0
|
3
|
x3002
|
0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0
|
4
|
x3003
|
0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0
|
5
|
x3004
|
0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1
|
6
|
x3005
|
1 1 1 1 1 0 0 0 0 0 1 0 0 0 0 1
|
7
|
x3006
|
0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 1
|
8
|
x3007
|
0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1
|
9
|
x3008
|
0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 1
|
10
|
x3009
|
1 1 1 1 0 0 0 0 0 0 1 0 0 1 0 1
|
Answer all the following questions by referring to the ISA table provided in Appendix A (located at the second last page of this document).
1. List down the trap vectors that are found in the program code and state its routines.
2. List down all registers that are found in the program code.
3. List down the addresses that consist of control instruction that are found in the program code. Then, comment each of the control instructions which the addresses are listed.
4. List down one address of instruction which involves negative numbers that would need 2’s complement process and give comment on the instruction.
5. From the given 10 lines of program code, select and modify two lines of program code in order to replace R2, a register that is used for counter, to R5. Write down the answer using Table 5.
Table 5
No
|
Address
|
Program Code
|
New Program Code
|
1
|
|
|
|
2
|
|
|
|
Extracted text: MTN3013: Computer Architecture and Organization iii. List down the addresses that consist of control instruction that are found in the program code. Then, comment each of the control instructions which the addresses are listed. [2 marks] iv. List down one address of instruction which involves negative numbers that would need 2's complement process and give comment on the instruction. [1 тark] V. From the given 10 lines of program code, select and modify two lines of program code in order to replace R2, a register that is used for counter, to R5. Write down the answer using Table 5. [4 marks] Table 5 No Address Program Code New Program Code 1
Extracted text: MTN3013: Computer Architecture and Organization 6 4. Table 4 is showing the address location of the instructions stored in the memory. Please refer to Table 4 in order to answer Question 4 (i) to (v). Table 4 No Address Instruction 1 х3000 11100010111111 11 x3001 01010110 11 1 00 000 3 x3002 01010100 10100000 4 x3003 000 1010010101100 5 x3004 000001000 000010 1 6 x3005 111 1 10000010000 1 7 x3006 000 101101100000 1 x3007 000100100 1 100 00 1 9 x3008 00010100 1 0 1 1 1 1 1 1 10 x3009 1111000000 100101 Answer all the following questions by referring to the ISA table provided in Appendix A (located at the second last page of this document). i. List down the trap vectors that are found in the program code and state its routines. [2 marks] ii. List down all registers that are found in the program code. [3 marks]