1. What are Procedure and Macro? Distinguish between Procedure and Macro. 2. Construct the binary code for each of the following 8086 instructions (a) ADC AX, BX (b) MOV CS:[BX], AL (c) JMP 3000H:2000H (d) CALL [5000H] (e) OUT DX,AL
3. Describe how an assembly language program is developed & debugged using system tools such as Editors, Assemblers, Linkers, Locators & debuggers. 4. Write a Procedure to display a four digit value in the [ax] register on an seven segment display. 5. Write an ALP to find the prime numbers among 100 bytes of data in an array stored from the address 4000H: 1000H in the data segment & store the result from the address 4000H: 3000H. 6. Draw a circuit showing the generation of I/O read & write control signals in the minimum mode operation. 7. Design a system (both software & hardware) that will cause four LEDs to flash 10 times when a push button (PB) switch is pressed. Use 8255 to interface the LEDs & the PB switch. Assume the address of Port A, Port B, & Port C & the control word register of the 8255 respectively. 8. Describe the main use of Interrupt type1 of 8086. Show the Assembly language instructions necessary to set the 8086 trap flag. 9. Interface 16K*8 RAM chips with the 8086, such that the memory address range assigned to the RAM chips is A0000H AFFFFH. Use an address decoder that employs two 74138 IC & Logic gates. 10. Write a program to generate square waveform using (a) DAC IC. Assume that the addresses 80H, 82H, 84H, 86H are assigned to port A, port B, port C, &control word register of 8255 respectively. (b) 8254 as a square wave generator with a 10 millisecond period(Assume 8254 input clock frequency is 1MHz)