8085 Questions

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3
At a glance
Powered by AI
The passage discusses 8085 microprocessor programs and questions related to instruction sequences, register contents, and memory addresses.

The sequence of instructions to complete the program would be: DCR C, JNZ LOOP, ADD B

From address 6018, the next instruction will be fetched from address 6979

For 8085 microprocessor, the following program is executed.

MVI A, 05H;
MVI B, 05H;
PTR: ADD B;
DCR B;
JNZ PTR;
ADI 03H;
HLT;
At the end of program, accumulator contains
(A) 17H (B) 20H
(C) 23H (D) 05H

An 8085 executes the following instructions


2710 LXI H, 30A0 H
2713 DAD H
2414 PCHL
All address 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 ?
(A)
PC 2715H
HL 30A0H
(B)
PC 30A0H
HL 2715H
(C)
PC 6140H
HL 6140H
(D)
PC 6140H
HL 2715H

Following is the segment of a 8085 assembly language program


LXI SP, EFFF H
CALL 3000 H
:
:
:
3000 H LXI H, 3CF4
PUSH PSW
SPHL
POP PSW
RET
On completion of RET execution, the contents of SP is
(A) 3CF0 H (B) 3CF8 H
(C) EFFD H (D) EFFF H

It is desired to multiply the numbers 0AH by 0BH and store the result in the
accumulator. The numbers are available in registers B and C respectively. A part
of the 8085 program for this purpose is given below :
MVI A, 00H
LOOP --------------HLT
END
The sequence of instructions to complete the program would be
(A) JNX LOOP, ADD B, DCR C
(B) ADD B, JNZ LOOP, DCR C
(C) DCR C, JNZ LOOP, ADD B
(D) ADD B, DCR C, JNZ LOOP

Consider the following assembly language program


MVI B, 87H
MOV A, B
START : JMP NEXT
MVI B, 00H
XRA B
OUT PORT1
HLT
NEXT : XRA B
JP START
OUT PORT2
HTL
The execution of above program in an 8085 microprocessor will result in
(A) an output of 87H at PORT1
(B) an output of 87H at PORT2
(C) infinite looping of the program execution with accumulator data remaining
at 00H
(D) infinite looping of the program execution with accumulator data alternating
between 00H and 87H

Ab 8085 microprocessor based system uses a 4K # 8 bit RAM whose starting


address is AA00H. The address of the last byte in this RAM is
(A) OFFFH (B) 1000H
(C) B9FFH (D) BA00H

The contents of register (B) and accumulator (A) of 8085 microprocessor are 49J

are 3AH respectively. The contents of A and status of carry (CY) and sign (S)
after execution SUB B instructions are
(A) A = F1, CY = 1, S = 1 (B) A = 0F, CY = 1, S = 1
(C) A = F0, CY = 0, S = 0 (D) A = 1F, CY = 1, S = 1

If CS = A15A14A13 is used as the chip select logic of a 4 K RAM in an 8085 system,


then its memory range will be
(A) 3000 H - 3 FFF H
(B) 7000 H - 7 FFF H
(C) 5000 H - 5 FFF H and 6000 H - 6 FFF H
(D) 6000 H - 6 FFF H and 7000 H - 7 FFF H

The following instructions have been executed by an 8085 mP


ADDRESS (HEX) INSTRUCTION
6010 LXI H, 8 A 79 H
6013 MOV A, L
6015 ADDH
6016 DAA
6017 MOV H, A
6018 PCHL
From which address will the next instruction be fetched ?
(A) 6019 (B) 6379
(C) 6979 (D) None of the above

The following sequence of instructions are executed by an 8085 microprocessor:


1000 LXI SP, 27 FF
1003 CALL 1006
1006 POP H
The contents of the stack pointer (SP) and the HL, register pair on completion of
execution of these instruction are
(A) SP = 27 FF, HL = 1003 (B) SP = 27 FD, HL = 1003
(C) SP = 27 FF, HL = 1006 (D) SP = 27 FD, HL = 1006

You might also like