Question: 3. Table 1 shows the content inside computer memary addresses. The code listed in Table 2 is designed to sun the mmbers stored in 10
3. Table 1 shows the content inside computer memary addresses. The code listed in Table 2 is designed to sun the mmbers stored in 10 locations begiming with 3100, leaving the result in R1. The initial value of RI is 0, R2 is 23100 and R4 is 10. Your task is to trace the content of R1, R2, and R4. Table 3 is given as a guide on how to write the contents of the registers. Draw the table in your answer bookdet. [12 marks] Table 1 Address Contents 13100 3101 13107 12819 13102 0110 13103 0310 13104 13105 13106 3107 0110 11110 xl1B1 0019 10007 10004 13108 3109 Table 2 Address 15 14 13 12 11 109 & 7 6 5 0 4 0 1 ol 1 0 0 1 1 0 0 0 23000 3:3001 1 1 1 0 0 1 0 0 0 0 23002 0 1 0 0 OJO JO -- 1 1 0 10 23003 1 1 OOO 1 OOOO ROO 2 1 olololololololol 1 ---OO--- 1 00 O O O O O O O 33004 1 1 1 0 0 0 0 0 23005 0 1 0 1 0 1 0 0 0 0 1 x3006 0 0 1 0 0 1 0 0 0 1 1 *3007 0 0 2 0 0 1 1 1 1 1 lolo 1 1 23008 0 0 0 1 1 2 0 1 1 3009 1 1 1 1 0 0 0 0 0 0 0 0 1 0 1 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 4to (v). Table 4 No Address Instruction 1 23000 1110001011111111 2 x3001 0101011011100000 3 3 23002 0101010010100000 4 23003 0001010010101100 5 23004 0000010000000101 6 6 x3005 1111100000100001 7 23006 0001011011000001 8 23007 0001001001100001 9 3008 0001010010111111 10 x3009 1111000000100101 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 doun the trap vectors that are found in the program code and state its routines. [2 marks] 21 List down all registers that are found in the program code. [3 marks] es
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
