This action might not be possible to undo. Are you sure you want to continue?
Homework:3 Part A
Suppose that you have the following initial content of registers and memory: AX=1A22H BX=3C40H CX=4502H SP=1000H BP=1002H
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 Memory instruction. location Content a). POP BX 2FFD 1A b). PUSH AX 2FFE CF 2FFF 36 c). MOV AX, BP+1 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 3003 FF segment. Suppose that the instruction following 3004 E4 the Call Sub instruction is at offset FE11H. 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 LED1 LED1 LED1 LED1 LED1 LED1 LED1 LED1
On Off OFF Off OFF Off On Off Off On ON On ON On Off On The delay of 3 seconds must be given between the transition. 2. Interface 8086 with an ADC IC and write an assembly language program for displaying the digital output at the port named “Display”. Use input port through any interrupt when ADC conversion is completed by ADC. 3. Configure the control word of 8255 so that port-A can be used as input port, port-B can be used as output port and upper port-C can be used as input port. Port-C lower remains unchanged.