You are on page 1of 2

DATE: ICC15 ASSIGNMENT ROLL NO.

:
V SEM ICE SECTION II

Q1. Write a program to perform subtraction of two 8-bit BCD numbers.


Soln. 1.

Q2. Find the state of the flags CF, ZF and OF after the following instructions are executed:
a. OR AH, BH
b. AND BL, CL
Given AX=008CH, BX=345EH, CX=67EBH
Soln. 2. a.

b.

Q3. Find the contents of AX and CL after the following program is executed:
STC
MOV AX, 5485
RCR AL, 1
MOV CL, 03
RCL AX, CL
Soln. 3. AX=
CL=
Q4. What is the duration of the bus-cycle in an 8086 based microcomputer, if the clock frequency is
12MHz and three wait states are inserted?
Soln. 4.

Q5. Initialize 8255 in mode 0, with Port B and Port C upper as input ports and Port A and Port C lower
as output ports. Write a program to read the status of switches from Port B and Port C upper and
display the status on Port B and Port C lower.
Soln. 5.
DATE: ICC15 ASSIGNMENT ROLL NO.:
V SEM ICE SECTION II

Q6. Draw a diagram using memory banks for a 16KX16 RAM. Draw only the decoding circuit and
addressing to the even and odd banks.
Soln. 6

Q7. Explain the mode 2 of 8253, with suitable timing diagram.


Soln. 7.

Q8. What is the purpose of using 8259? Can the 8086 work without this device?
Soln. 8

Q9. Draw the display section for a 8-bit display interfaced to 8279.
Soln. 9.

Q10. Give the format of ICW1, ICW2 and ICW4 of 8259.


Soln. 10

You might also like