Instruction Set and Programming with 8085 · Microprocessors · GATE ECE
Marks 1
In an 8085 microprocessor, the number of address lines required to access a 16 K bytes memory bank is
$\_\_\_\_$ .
At the end of program, accumulator contains
From which address will be text instruction be fetched?
1000: LXI SP< 27FF
1003: CALL 1006
1006: POP H
The contents of the stack pointer (SP) and the HL register pair on completion or execution of these instructions are.
At the completion of execution of the program, the program Counter of the 8085 contains ________ and the Stack Pointer contains ________.
Marks 2
The content of the registers are $R_1=25 \mathrm{H}, R_2=30 \mathrm{H}$ and $R_3 =40 \mathrm{H}$. The following machine instructions are executed.
$$ \begin{aligned} & \operatorname{PUSH}\left\{R_1\right\} \\ & \operatorname{PUSH}\left\{R_2\right\} \\ & \operatorname{PUSH}\left\{R_3\right\} \\ & \operatorname{POP}\left\{R_1\right\} \\ & \operatorname{POP}\left\{R_2\right\} \\ & \operatorname{POP}\left\{R_3\right\} \end{aligned} $$
After execution, the content of registers $R_1, R_2, R_3$ are
MVI A, 33H
MVI B, 78H
ADD B
CMA
ANI 32H
The Accumulator value immediately after the execution of the fifth instruction is
MVI A,07H
RLC
MOV B,A
RLC
RLC
ADD B
RRC
3000 MVI A, 45H
3002 MOV B, A
3003 STC
3004 CMC
3005 RAR
3006 XRA B
2710 LXI H, 30A0H
DAD H
PCHL
All addresses and constants are in Hex. Let PC be the contents of the program counter and HL be the contents of the HL register pair just after executing PCHL.
Which of the following statements is correct.Line 1: MVI A, B5H
2: MVI B, 0EH
3: XRI 69H
4: ADD B
5: ANI 9BH
6: CPI 9FH
7: STA 3010H
8: HLT
The contents of the accumulator just after execution of the ADD instruction in line 4 will be
Line 1: MVI A, B5H
2: MVI B, 0EH
3: XRI 69H
4: ADD B
5: ANI 9BH
6: CPI 9FH
7: STA 3010H
8: HLT
After execution of line of the program, the status of the CY and Z flags will be
LXI SP, EFFF H
CALL 3000 H
3000H: LXI H, 3CF4H
PUSH PSW
SPHL
POP PSW
RET
On completion of RET execution, the contents of SP is
Consider an 8085 microprocessor system
The following program starts at locaton 0100H.
LXI SP, 00FF
LXI H, 0107
MVI A, 20H
SUB M
The contents of accumulator wnen the program counter reaches 0109H is
Consider an 8085 microprocessor system
If in addition following code exists from 0109H onwards ORI 40H, ADD M What will be the result in the accumulator after the last instruction is executed
(I.) LDA 3000H
(II.) LXI D, FOF 1H
Would be
LXI H, 9258
MOV A, M
CMA
MOV M, A
Which one of the following is performed by this sequence?
MVI A, 00H
LOOP:.........
...............
HLT END
The sequence of instruction to be complete the program would be
The execution of the above program in an 8085 microprocessor will result in
Marks 5

LOC
2000 START: LXI SP, 1000H
LXI H, 2F37 H
XRA A
MOV A, H
INX H
PUSH H
CZ 20 FF H JMP 3000 H
HLT
20FF ADD H
RZ
POP B
PUSH B
RNZ
HLT