Professional Documents
Culture Documents
Part A
1. Suppose that you have the following initial content of registers and memory:
Determine the content of SP, and modified registers and memory locations after the
execution of each of the following instructions starting from the initial content of the
registers and memory for the execution of each
instruction. Memory
a). POP BX location Content
2FFD 1A
b). PUSH AX 2FFE CF
c). MOV AX, BP+1 2FFF 36
3000 1B
d). Call Sub, where the call is a near call and 3001 60
3002 32
Sub is at an offset address 3000H fom the code
segment. Suppose that the instruction following 3003 FF
the Call Sub instruction is at offset FE11H. 3004 E4
e). RET1
2. Explain what type of interrupt are the following:
(i) INT 27H.
(ii) Overflow interrupt.
(iii) Divide by 0 interrupt.
(iv) Single-step interrupt.
(v) An active signal at the NMI input.
(vi) An active signal at the INTR input.
3. Write an assembly language program for 8086 to count input pulses at input port of timer
counter IC 8254. You can assume any one port/channel of IC and any of the address can
be used for addressing but control word must be mentioned. Whenever there will be any
pulse counted, the count of pulses must also be sent to the output port named “Display”.
PART-B
1. Write an assembly language program for 8086 to ON and OFF the 8-LED connected at
the port named “LED”. The 8 LED’s must be ON/OFF in the fashion below