Docsity

Memory-Assembly Language, Microprocessors and Computer Architecture-Quiz, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
Best Of Luck
Page # 1 of 1
Quiz No. 1 (Spring- 2010)
B.Sc. Electrical Engineering
Microprocessor and Computer Architecture (EE 2202)
Section B
Time Allowed: 15 mins Student’s Name: _____________
Max Marks : 15 Roll No. : _____________
Question # 01: Consider a hypothetical machine having PC (Program Counter), IR
(Instruction Register and AC (Accumulator). The processor has 16-bits instruction
(4-bits for opcode and 12-bits for address). A sub set of instruction is as under:
0101 = Subtract Memory from AC
0011 = Load AC from memory
0111 = Store AC to memory
Show execution of following segment of program by showing the values in the PC,
IR, AC, and Memory for each machine cycle? Starting instruction memory address
is 300.
Load AC from Memory location 400 (value stored is 0009).
Subtract contents of memory location 700 (value stored is 0004).
Store AC to memory location 600.
docsity.com

Partial preview of the text

Download Memory-Assembly Language, Microprocessors and Computer Architecture-Quiz and more Exercises Computer Architecture and Organization in PDF only on Docsity!

Best Of Luck Page # 1 of 1

Quiz No. 1 (Spring- 2010)

B.Sc. Electrical Engineering

Microprocessor and Computer Architecture (EE 2202)

Section B

Time Allowed: 15 mins Student’s Name: _____________ Max Marks : 15 Roll No. : _____________

Question # 01: Consider a hypothetical machine having PC (Program Counter), IR (Instruction Register and AC (Accumulator). The processor has 16-bits instruction (4-bits for opcode and 12-bits for address). A sub set of instruction is as under:

0101 = Subtract Memory from AC 0011 = Load AC from memory 0111 = Store AC to memory

Show execution of following segment of program by showing the values in the PC, IR, AC, and Memory for each machine cycle? Starting instruction memory address is 300.

Load AC from Memory location 400 (value stored is 0009). Subtract contents of memory location 700 (value stored is 0004). Store AC to memory location 600.

docsity.com