q.2 a. explain the action of 8086 when nmi and intr pins are … · 2016. 1. 27. · ac78 advanced...

28
AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 1 Q.2 a. Explain the action of 8086 when NMI and INTR pins are activated. (8) Answer: b. Explain with examples indirect addressing modes available in microprocessor 8086. (8) Answer:

Upload: others

Post on 22-Jul-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 1

Q.2 a. Explain the action of 8086 when NMI and INTR pins are activated. (8) Answer:

b. Explain with examples indirect addressing modes available in microprocessor 8086.

(8) Answer:

Page 2: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 2

Page 3: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 3

Page 4: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 4

Page 5: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 5

Page 6: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 6

Page 7: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 7

Page 8: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 8

Q.3 a. Explain following instructions in 8086 family and their effect on flag. (i) CWD (ii) IDIV (iii) AAS (iv) SAR (v) LOOP (vi) SAHF (vii) BOUND (viii) IMUL (12) Answer:

Page 9: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 9

b. Explain with examples LDS and LES instructions. (4) Answer:

Page 10: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 10

Q.4 a. Explain with examples conditional jump instructions which perform a jump based

on the value of a single flag. What is the change needed in the code to branch anywhere in the segment based on a condition? (8)

Answer:

Page 11: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 11

b. Enlists the different steps results in the execution of an INT3 instruction. (8) Answer:

Page 12: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 12

Q.5 a. Explain the 8087 instructions to load special constants. (8) Answer:

Page 13: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 13

b. Describe the programmer’s view of tag register and exception pointer of 8087.(8) Answer:

Page 14: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 14

Q.6 a. Write a Program in assembly language to find the largest of n numbers stored in the

memory. (8) Answer:

Page 15: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 15

b. Discuss the following assembler directives with example (8)

(i) DWORD (ii) OFFSET (iii) SEGMENT (iv) MACRO

Answer:

Page 16: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 16

Q.7 a. Write an 8086 assembly language program to search for a given 8 bit value using

linear search in an array of 8 bit numbers. (8) Answer:

Page 17: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 17

b. Write an 8086 assembly language program to rename a file, if it exists, using DOS

interrupt. Otherwise display on error message. (8) Answer:

Page 18: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 18

Page 19: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 19

Q.8 a. Using DOS function call, write a C program to obtain the size of given file. Message

should be displayed on the screen indicating the size in hexadecimal and decimal format. If the file is not found suitable error message should be displayed. (8)

Answer:

Page 20: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 20

Page 21: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 21

b. Using BIOS routines, write a C program to display a suitable message on CRT in the

middle of the screen, after clearing the screen first. (8) Answer:

Page 22: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 22

Page 23: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 23

Q.9 a. Explain the Architecture of 80486. (8) Answer:

Page 24: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 24

Page 25: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 25

b. Explain the register organization of 80286. (8) Answer:

Page 26: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 26

Page 27: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 27

Page 28: Q.2 a. Explain the action of 8086 when NMI and INTR pins are … · 2016. 1. 27. · AC78 ADVANCED MICROPROCESSORS DEC 2015 © IETE 8 Q.3 a. Explain following instructions in 8086

AC78 ADVANCED MICROPROCESSORS DEC 2015

© IETE 28

TEXT BOOK

I. Advanced Microprocessors & IBM-PC Assembly Language Programming, K. Udaya Kumar and B.S. Umashankar, TMH, 1996 II. Advanced Microprocessors and Peripherals, A.K. Ray and K.M. Burchandi, TMH, 2000