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 XXXXXXXXXX...



  1. 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











MTN3013: Computer Architecture and Organization<br>iii.<br>List down the addresses that consist of control instruction that are found in the<br>program code. Then, comment each of the control instructions which the addresses<br>are listed.<br>[2 marks]<br>iv.<br>List down one address of instruction which involves negative numbers that would<br>need 2's complement process and give comment on the instruction.<br>[1 тark]<br>V.<br>From the given 10 lines of program code, select and modify two lines of program<br>code in order to replace R2, a register that is used for counter, to R5. Write down<br>the answer using Table 5.<br>[4 marks]<br>Table 5<br>No<br>Address<br>Program Code<br>New Program Code<br>1<br>

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
MTN3013: Computer Architecture and Organization<br>6<br>4. Table 4 is showing the address location of the instructions stored in the memory. Please<br>refer to Table 4 in order to answer Question 4 (i) to (v).<br>Table 4<br>No<br>Address<br>Instruction<br>1<br>х3000<br>11100010111111 11<br>x3001<br>01010110 11 1 00 000<br>3<br>x3002<br>01010100 10100000<br>4<br>x3003<br>000 1010010101100<br>5<br>x3004<br>000001000 000010 1<br>6<br>x3005<br>111 1 10000010000 1<br>7<br>x3006<br>000 101101100000 1<br>x3007<br>000100100 1 100 00 1<br>9<br>x3008<br>00010100 1 0 1 1 1 1 1 1<br>10<br>x3009<br>1111000000 100101<br>Answer all the following questions by referring to the ISA table provided in Appendix A<br>(located at the second last page of this document).<br>i.<br>List down the trap vectors that are found in the program code and state its routines.<br>[2 marks]<br>ii.<br>List down all registers that are found in the program code.<br>[3 marks]<br>

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]

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here