1. If 8085 adds 87 H 79 H, then
(a) Both CARRY and ZERO flags will be set to 0.
(b) CARRY flag will be set to 0 and ZERO flag to 1.
(c) CARRY flag will be set to 1 and ZERO flag to 0.
(d) Both CARRY and ZERO flags will be set to 1.
2. If A=29 BCD and B=33BCD, then after ADD B instruction the output will be :
(a) 62 BCD
(b) 62H
(c) 5CH
(d) 5C BCD
3. Consider the program
PUSH PSW
POPH
After the execution of this program :
(a) The L resistor contains flag resistor contents
(b) The H resistor contains flag resistor contents
(c) The L resistor contains accumulator contents
(d) None of the above.
4. Which one of the following instructions can be used to clear the accumulator ?
(a) XRA A
(b) MVI A, 00H
(c) SUB A
(d) All of these
5. How many times the loop in the following program will be executed ?
LXI D, 0050H
DCX D
MOV A, E
ORA D
XRA A
JNZ LOOP
(a) 80
(b) 0
(c) 1
(d) Infinite
General Knowledge Books
Be a Part of the New & Next
Share the Knowledge