Tribhuwan University

Institute of Science and Technology

2080

Bachelor Level / First Year / Second Semester / Science

Bachelors in Information Technology (BIT151)

(Microprocessor and Computer Architecture)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
What is Addressing Modes? Explain each with example. Explain the function and type of addressing mode with reason of instructions STA 4000H.[10]

Addressing Modes in Intel 8085

Addressing Mode is the method by which the operand (data) is specified in an instruction. It tells the processor where to find the data to be operated upon.


Types of Addressing Modes in 8085

a) Immediate Addressing Mode

  • The operand (data) is directly given in the instruction itself.
  • Data is part of the instruction (2nd or 3rd byte).

Example: MVI A, 32H — Moves the value 32H immediately into register A.


b) Register Addressing Mode

  • The operand is in a register and the instruction specifies the register name.
  • No memory access is needed to fetch data.

Example: MOV A, B — Moves the content of register B into register A.


c) Direct Addressing Mode

  • The address of the operand is directly specified in the instruction.
  • The instruction contains the 16-bit memory address where data resides.

Example: LDA 2500H — Loads the content of memory location 2500H into accumulator.


d) Indirect Addressing Mode (Register Indirect)

  • The register pair contains the address of the memory location where data is stored.
  • The instruction refers to a register pair that acts as a pointer.

Example: MOV A, M — Moves data from memory location pointed by HL pair into A.


e) Implied (Implicit) Addressing Mode

  • The operand is implied by the instruction itself. No operand is explicitly mentioned.
  • The instruction inherently operates on a specific register.

Example: CMA — Complements the accumulator (operand is always A, implied).


Analysis of Instruction: STA 4000H

Feature Detail
Instruction STA 4000H
Full Form Store Accumulator
Opcode STA
Operand 4000H (16-bit address)
Size 3 bytes (1 byte opcode + 2 bytes address)

Function of STA 4000H

  • STA stands for Store Accumulator Direct.
  • It copies the content of the accumulator (A) into the memory location whose address is specified in the instruction.
  • After execution: Memory[4000H] ← Content of A
  • The content of the accumulator remains unchanged.

Example: If A = 45H, then after STA 4000H, the memory location 4000H will contain 45H.


Addressing Mode of STA 4000H

The instruction STA 4000H uses Direct Addressing Mode.

Reason:

  • The 16-bit memory address (4000H) is directly specified within the instruction itself.
  • The processor does not need to look into any register to find the address — it is explicitly provided as part of the instruction.
  • The data flows from the accumulator to the memory address 4000H directly.
  • This is the defining characteristic of Direct Addressing Mode — the instruction contains the exact address of the operand location.

Conclusion

Addressing modes provide flexibility in programming by allowing different ways to access operands. The instruction STA 4000H is a classic example of Direct Addressing Mode where the 16-bit address is embedded directly in the instruction, making it simple and straightforward for storing accumulator data into a specific memory location.

2.
What is control unit of microprocessor? Draw the block diagram of the hardwired control unit and explain the function of each unit in brief.[10]
3.
What is pipelining? Define instruction pipeline and explain the four segment instruction pipeline.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
What is Microprocessor? What are 3 general categories of the function of microprocessor? Explain in brief. [5]
5.
Write 8085 assembly language to add two numbers located at 2030H and 2040H. Store the sum in the address 2050H. [5]
6.
Design a 4-bit combinational circuit decrementer (A1 \gets A1 - 1) using four full-adder circuits. Explain the circuit. [5]
7.
What is selective set logical operation? Draw the hardware circuit of selective set logical operation. [5]
8.
Show the step-by-step division process using Restoring Division Algorithm of 194 ÷\div 10) (AQ= 10100011 by B=1011). [5]
9.
Explain the difference between isolated I/O and memory-mapped I/O? What are the advantages and disadvantages of each? [5]
10.
What is Virtual Memory? Explain in brief. [5]
11.
What do you understand by microprogrammed control computer? Explain main memory and control memory of microprogrammed controlled Computer. [5]
12.
Write short notes one a.) Performance of a pipelined processor Write short notes one b.) Page Replacement [2.5+2.5]