INSTRUCTIONS: Answer All Questions. All Parts of A Question (A, B, Etc.,) Should Be Answered at One Place. Answer
INSTRUCTIONS: Answer All Questions. All Parts of A Question (A, B, Etc.,) Should Be Answered at One Place. Answer
INSTRUCTIONS: Answer All Questions. All Parts of A Question (A, B, Etc.,) Should Be Answered at One Place. Answer
INSTRUCTIONS: Answer All Questions. All parts of a question (a, b, etc.,) should be answered at one place. Answer
should be brief and to-the-point and be supplemented with neat sketches. All the diagrams must be drawn using
pencils. Unnecessary long answers may result in loss of marks. Any missing or wrong data may be assumed suitably
giving proper justification.
Q. Description MAR
No. KS
1 (a) Write a program in assembly language 8085 to sort an array of 9 numbers in ascending order. Assume [3]
that the numbers are stored from starting address 2050. Write a subroutine to find the sum of the
largest and smallest numbers from the sorted list and store the result along with carry starting at
memory location C050H. Write another subroutine to count the number of 1’s in the result and store
the value in memory location D050H. Write the proper comment statements in the program using the
symbol “//“.
(b) Name the different types of assembler programs. Which one among these is popular? Write a program [3]
in assembly language 8086 to display the string “Rourkela is a smart city”. What are the data defined
pseudo operations in 8086.
2 Two 8085 programs are given below (P1 and P2). Answer as directed with adequate explanation.
(P1): If the program execution begins at CF00H, write the sequence of instructions those are executed [4+2]
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?
CF00 MVI A, FFH
CF02 INR A
CF03 JC CFOCH
CF06 CPI A8 H
CF08 JM CF15H
CF0B XRA A
CF0C OUT PORT1
CF0E HLT
CF10 XRI FFH
CF12 OUT PORT2
CF14 HLT
CF15 MVI A,FFH
CF17 ADI 02 H
CF19 RAL
CF1A JZ CF23 H
CF1D JC CF10 H
CF20 JNC CF12 H
CF23 CMA
CF24 OUT PORT3
CF26 HLT
(P2): 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.
ANA D
MVI B,33 H
RAR
ADD E
CMP H
3 (a) Explian with examples of diffrent extra flags available in 8086 excluding the flags of 8085. Write a [3+3]
minmal set of instructions in assembly language 8086 to shift the contents of accumulator by 6 bits.
(b) Give a comparison between 8085 and 8086 microprocessor with the help of a table. Identify at least
6 features to differentiate between the above microprocessors.
4 (a) How microprocessor 8086 supports a 2 stage instruction pipelining? Identify the resources in 8086 [3+3]
implement the instruction pipelining? Write the type of arithmetic operations and resources required to
achieve an arithmetic pipelining along with instruction pipelining. Identify a common set of resources
which will be shared by different arithmetic operations in order to implement both instruction and
arithmetic pipelining.
(b) Identify whether the instructions given below belong to 8085 or 8086?
(i) CMA (ii) RET, (iii) PCHL, & (iv) SHLD 3000H (v) CMA (vi) ROR (vi) CLD
Specify the types of addressing modes and number of memory accesses required for the above
instructions.
5 (a) Write a program in assembly language of 8085 or 8086 to swap two variables without and with using [2 +3
third variable. +1]
(b) What will be the output after executing the instructions "MVI A, 00H" and "XRA A". If they have a
same output then compare them with respect to space consumed in bytes and time taken in micro-second
by using appropriate timing diagrams for each instruction.
(c) Write the function of signals INTA and READY signal in microprocessor 8085 and 8086.