Match the following 8085 instructions with the flags : Codes : a b c d List – I List – II a. XCHG i. only carry flag is affected. b. SUB ii. no flags are affected. c. STC iii. all flags other than carry flag are affected. d. DCR iv. all flags are affected.
ii iv i iii
The 8085 has five flags: S (sign), Z (zero), AC (auxiliary carry), P (parity) and CY (carry). Data-transfer instructions affect none of them; arithmetic/logic instructions affect them according to the result.
a. XCHG exchanges the contents of HL with DE. It is a pure data-transfer instruction, so no flags are affected → ii.
b. SUB r/M subtracts from the accumulator, a full arithmetic operation, so S, Z, AC, P and CY are all affected → iv.
c. STC (set carry) only makes CY = 1; no other flag changes → i.
d. DCR r/M decrements a register or memory byte; it affects S, Z, AC and P but leaves CY unchanged → iii.
So the matching is a–ii, b–iv, c–i, d–iii.
Hence, the answer is ii iv i iii.
How many times will the following loop be executed ?
LXI B, 0007 H
LOP : DCX B
MOV A, B
ORA C
JNZ LOP
Specify the contents of the accumulator and the status of the S, Z and CY flags when 8085 microprocessor performs addition of 87 H and 79 H.
One of the main features that distinguish microprocessor from micro-computers is
What will be the output at PORT1 if the following program is executed ?
MVI B, 82H
MOV A, B
MOV C, A
MVI D, 37H
OUT PORT1
HLT
Which of the following 8085 microprocessor hardware interrupt has the lowest priority ?
In 8085 microprocessor, the digit 5 indicates that the microprocessor needs
In 8085, which of the following performs : load register pair immediate operation ?
The RST 7 instruction in 8085 microprocessor is equivalent to :
8085 microprocessor has _____ hardware interrupts.
Which of the following in 8085 microprocessor performs
HL = HL + DE ?
The magnetic vector potential of an electromagnetic system is given by $ \vec{A}=(y \cos ax) \vec{a_x} + (y+e^x) \vec{a_z}$. The magnitude of the magnetic flux density at the origin is