1
GATE ECE 2007
MCQ (Single Correct Answer)
+2
-0.6
An 8085 assembly language program is given below.
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

A
C3H
B
EAH
C
DCH
D
69H
2
GATE ECE 2007
MCQ (Single Correct Answer)
+2
-0.6
An 8085 assembly language program is given below.
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

A
CY= 0, Z=0
B
CY= 0, Z=1
C
CY= 1, Z=0
D
CY= 1, Z=1
3
GATE ECE 2006
MCQ (Single Correct Answer)
+2
-0.6
Following is the segment of a 8085 assembly Language program:
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

A
3CF0H
B
3CF8H
C
EFFDH
D
EFFFH
4
GATE ECE 2005
MCQ (Single Correct Answer)
+2
-0.6

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

A
20H
B
02H
C
00H
D
FFH.
GATE ECE Subjects
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12