Semester
Subject
Year
Tribhuwan University
2080
Bachelor Level / First Year / Second Semester / Science
(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.
Long Answers Questions
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.
Example: MVI A, 32H — Moves the value 32H immediately into register A.
Example: MOV A, B — Moves the content of register B into register A.
Example: LDA 2500H — Loads the content of memory location 2500H into accumulator.
Example: MOV A, M — Moves data from memory location pointed by HL pair into A.
Example: CMA — Complements the accumulator (operand is always A, implied).
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) |
STA 4000HExample:
If A = 45H, then after STA 4000H, the memory location 4000H will contain 45H.
STA 4000HThe instruction
STA 4000Huses Direct Addressing Mode.
Reason:
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.
Short Answers Questions