Professional Documents
Culture Documents
(P2):The starting address of this program is 7FFFH. What would happen if it is executed from 8000H?
3 Two 8085 programs are given below (P3 and P4). Answer as directed with adequate explanation. [3X2]
(P3): If the program execution begins at FF00H, write the sequence of instructions those are executed
until a HLT instruction is encountered. Assume all flags are initially reset. Which of the three ports will
be loaded with data and what is the bit pattern of the data?
(P4): Registers values before the execution of first instruction are: A = 11H, BC = 1234H, DE = CDEFH
and HL = 1100H. Also the flags are reset at the beginning. State the status of each flag for each of the
following instructions, with sufficient explanation.
4 (a) Interface two units of 8k×8 EPROMs with 8085 using a decoder such that the starting address [4+2]
assigned to the EPROMs would be 8000H and C000H, respectively.
(b) 8085 is to be interfaced with one 16k×8 EPROM chip and one 16k×8 RAM chip. Both chips are having
one active low chip enable signal (𝐶𝐸 ). The address line A15 of 8085 is directly connected to the (𝐶𝐸 )
of the EPROM chip. The same A15 line is inverted and connected to the (𝐶𝐸 ) of the RAM chip. Find
all possible address ranges that can be assigned to each chip. Justify your answer.
5 (a) Write the assembly language program lines to enable all the interrupts in 8085 after reset. [ 2+4]
(b) Specify the types of addressing modes and number of memory accesses required for the following
instructions: (i) DAA, (ii) RET, (iii) PCHL, & (iv) SHLD 3000H
6 (a) Explain the operation performed by the instructions "MVI A,00H" and "XRA A". [1+4+1]
(b) If they have a same outcome then compare them with respect to space consumed in bytes and time taken
by means of timing diagrams.
(c) During opcode fetch and memory read cycles 8085 performs memory read operations but they require 4
and 3 T-states, respectively. Justify the statement.