GATE 2003
90 questions
MCQ 901-mark 90
Questions 81–85 of 90
The following program is written for an 8085 microprocessor to add two bytes
located at memory addresses 1FFE and 1FFF
LXI H, 1FFE
MOV B, M
INR L
MOV A, M
ADD B
INR L
MOV M, A
XOR A
On completion of the execution of the program, the result of addition is found
LXI H, 1FFE
MOV B, M
INR L
MOV A, M
ADD B
INR L
MOV M, A
XOR A
On completion of the execution of the program, the result of addition is found
Answer: (C)
Step by step:
LXI H, 1FFE: HL = 1FFE.
MOV B, M: B = data at 1FFE (first byte).
INR L: adds 1 to register L only, not to the HL pair. L = FE becomes FF, so HL = 1FFF.
MOV A, M: A = data at 1FFF (second byte).
ADD B: A = A + B, which is the sum.
INR L: L = FF becomes 00. INR works on 8 bits and the carry does not go into H, so H stays 1F and HL = 1F00. (A 16-bit increment, INX H, would give 2000.)
MOV M, A: the sum is stored at address 1F00.
XRA A: clears A to 00H, so the sum is no longer in A.
So the result is at memory address 1F00.
Answer: (C)
LXI H, 1FFE: HL = 1FFE.
MOV B, M: B = data at 1FFE (first byte).
INR L: adds 1 to register L only, not to the HL pair. L = FE becomes FF, so HL = 1FFF.
MOV A, M: A = data at 1FFF (second byte).
ADD B: A = A + B, which is the sum.
INR L: L = FF becomes 00. INR works on 8 bits and the carry does not go into H, so H stays 1F and HL = 1F00. (A 16-bit increment, INX H, would give 2000.)
MOV M, A: the sum is stored at address 1F00.
XRA A: clears A to 00H, so the sum is no longer in A.
So the result is at memory address 1F00.
Answer: (C)
A memory system has a total of 8 memory chips, each with 12 address lines and
4 data lines, The total size of the memory system is
Answer: (A)
Each chip has 12 address lines, so it has locations. Each location holds 4 bits (4 data lines).
Size of the whole memory = number of chips locations per chip bits per location
= 131072 bits = 128 kbits
= 128/8 = 16 kbyte
Answer: (A)
Size of the whole memory = number of chips locations per chip bits per location
= 131072 bits = 128 kbits
= 128/8 = 16 kbyte
Answer: (A)
When a program is being executed in an 8085 Microprocessors, its Program Counter contains
Answer: (D)
The Program Counter holds the memory address of the next instruction to be executed.
Figure shows a MOSFET with an integral body diode. It is employed as a power switching device in the ON and OFF states through appropriate control. The ON and OFF states of the switch are given on the - plane by
Answer: (B)
The body diode D has its anode at the source and cathode at the drain. is positive when current flows from drain to source. There are three operating cases, and each gives one point on the - plane:
Reverse current through the body diode (diode conducting): and
MOSFET ON: and
MOSFET OFF: and
A point with is not possible, because the body diode would conduct. So Figs. A, C and D, which mark a point at negative , are wrong. Fig. B has exactly the three points: positive , negative and positive .
Answer: (B)
Figure shows a thyristor with the standard terminations of anode (A), cathode
(K), gate (G) and the different junctions named , and . When the thyristor is turned on and conducting
Answer: (D)
Going from anode to cathode, the structure is P-N-P-N. The junctions are (top), (middle) and (bottom).
In the forward blocking state, the two outer junctions are forward-biased. The middle junction is reverse-biased, and it is the one that blocks the voltage.
When the thyristor is turned on, the regenerative action of the two-transistor model fills the inner layers with carriers. So the middle junction also becomes forward-biased. In the conducting state, all three junctions are forward-biased. The voltage drop is only about 1 to 2 V.
Correct answer: (D)