This text discusses computer organization and architecture, covering topics such as memory size, addressing modes, and programming. It includes answers to questions and sample programs for MARIE and register memories.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: COMPUTER ORGANIZATION AND ARCHITECTURE Computer Organization and Architecture Name of the Student: Name of the University: Author Note
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1 COMPUTER ORGANIZATION AND ARCHITECTURE Answer to question number 1 a.122 instructions imply that 2^7, hence 7 bits are required for the opcode. b.The number of bits in a word is 16. Hence the address part is 16 – 7 = 9 bits. c.Maximum allowable size of the memory is 2^9 bits. d.2 ^16 - 1 or 16 ones is the highest number to be allocated in the memory. Answer to question number 2 1.Immediate Addressing mode Value added into the accumulator is 1000. Value in accumulator is 500. Therefore, the value loaded into the accumulator is 1000 +500 =1500. 2.Direct Addressing mode Effective address: 1000 Value added into the accumulator is 1400. Value in accumulator is 500. Therefore, the value loaded into the accumulator is 1400 +500 = 1900. 3.Indirect Addressing mode The effective address is the value in 1000 which is 1400. Therefore, the value added into the accumulator is 1300 Value in accumulator is 500. Therefore, the value loaded into the accumulator is 1300 +500 = 1800. 4.Indexed Addressing mode The value of R1 is 200.
2 COMPUTER ORGANIZATION AND ARCHITECTURE The effective address is 1000 + 200 = 1200. Hence the value in 1200 location would be added to the accumulator. Value in location 1200 is 1000. Hence the value loaded into the accumulator is 1000 + 500 = 1500. Answer to question number 3 The following MARIE program can be utilized to realise the expression S = (A+B)- (C+D). 100 LOAD A 101 ADD B 102 STORE X 103 CLEAR 104 LOAD C 105 ADD D 106 STORE Y 107 CLEAR 108 LOAD X 109 SUBT Y 10A STORE S 10B HALT Now for the Register memories the following program is to be used: ADD R1, A, B
3 COMPUTER ORGANIZATION AND ARCHITECTURE ADD R2, C, D SUBT A, R1, R2 For the first program the AC and the MBR registers are used only however no additional storage area is used for the programs and for the second program three registers are used and thence the memory for the three registers are also required by the program. Answer to question number 4 a. AddressHex 1001108StartLOAD A 1013109ADD B 102210BSTORE D 103A000CLEAR 104F400OUTPUT 105B10BADDI D 1062014STORE B 1077000HALT 1080200AHEX 00FC 1090014BDEC 14 10A0001CHEX 0108 10B0000DHEX 0000 b. SymbolLocation
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4 COMPUTER ORGANIZATION AND ARCHITECTURE A108 B109 C10A D10B Start100 c. The accumulator would store a value of 10A after the program has been terminated completely.