Assignment Unit 04

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

MGM University

Jawaharlal Nehru Engineering College


Department of Computer Science and Engineering
Academic Year 2022-2023 Part-I Sem-V
Computer Architecture and Peripherals
Assignment 04
Sr. Question Cognitive CO
No. Level
1. Convert the following instruction Accumulator based CPU, L2 CO 4
Register based CPU.
Instruction: (A*B) – (R+Z)/T
2. Enlist and explain any two addressing modes. Given the L2 CO 4
following memory values and an one address machine with
an accumulator, what values do the following instructions
load into the accumulator?
word 20 contains 40
word 30 contains 50
word 40 contains 60
word 50 contains 70
a. LOAD IMMEDIATE 20
b. LOAD DIRECT 20
c. LOAD INDIRECT 20
d. LOAD IMMEDIATE 30
3. Why a number of addressing mode is needed? By taking L2 CO 4
suitable example explain the following addressing modes:
Direct, Index, Relative, Immediate and Register
4. How arithmetic expressions are evaluated in a stack based L2 CO 4
CPU? Explain in detail.
5. How a computer instruction is executed? Draw the L2 CO 4
instruction cycle.
6. Compare RISC and CISC computers. L2 CO 4
7. The content of PC in basic computer is 3AF(all numbers L2 CO 4
are hexadecimal) The content of AC is 7EC3. The content
of memory at address 3AF is 832E. The content of
memory at address 32E is 09AC. The content of memory
at address 9AC is 5A8E. Calculate the following:
a) What is the instruction that will be fetched and
executed next?
b) Show the binary operation that will be performed in
the AC when the instruction is executed?
c) Give the contents of registers PC,MAR,MDR,AC
and IR in hexadecimal at the end of the instruction
cycle.
8. Describe one address, two address and three address L2 CO 4
instruction format with an example.
9. What are registers? Enlist pros and cons of using L2 CO 4
them.
10. What are General purpose and Special purpose L2 CO 4
registers? Explain with an example

You might also like