Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solutions of nptel assignment, Assignments of Microprocessor and Interfacing

Microprocessor assignment of year 2021

Typology: Assignments

2020/2021

Uploaded on 05/28/2021

gorav-sharma
gorav-sharma 🇮🇳

1 document

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NPTEL Online Certification Courses
Indian Institute of Technology Guwahati
Assignment-4
Question-1: The 8086 instruction CWD is used to
(A) Exchange the contents of memory with register
(B) Convert the byte into word
(C) Convert the word into double word
(D) Convert the ASCII into EBCDIC
Correct answer: (C)
Detailed solution: Self-explanatory
Question-2: If [AX]=F000H, after the execution of the instruction CBW, the contents of AX would
be
(A) 0000H
(B) F000H
(C) FFFFH
(D) FF00H
Correct answer: (A)
Detailed solution: Refer to page 7 in the pdf link below:
https://nptel.ac.in/content/storage2/courses/106108100/pdf/Lecture_Notes/LNm2.pdf
Question-3: The number of software interrupts present in 8086 are
(A) 16
(B) 32
(C) 64
(D) 256
Correct answer: (D)
Detailed solution: Self-explanatory
pf3

Partial preview of the text

Download Solutions of nptel assignment and more Assignments Microprocessor and Interfacing in PDF only on Docsity!

Indian Institute of Technology Guwahati

Assignment- 4

Question- 1 : The 8086 instruction CWD is used to (A) Exchange the contents of memory with register (B) Convert the byte into word (C) Convert the word into double word (D) Convert the ASCII into EBCDIC Correct answer : (C) Detailed solution : Self-explanatory Question- 2 : If [AX]=F000H, after the execution of the instruction CBW, the contents of AX would be (A) 0000H (B) F000H (C) FFFFH (D) FF00H Correct answer : (A) Detailed solution : Refer to page 7 in the pdf link below: https://nptel.ac.in/content/storage2/courses/106108100/pdf/Lecture_Notes/LNm2.pdf Question- 3 : The number of software interrupts present in 8086 are (A) 16 (B) 32 (C) 64 (D) 256 Correct answer : (D) Detailed solution : Self-explanatory

Indian Institute of Technology Guwahati

Question- 4 : Type 4 interrupt is (A) Divide by zero interrupt (B) Single step interrupt (C) Breakpoint interrupt (D) Interrupt on overflow Correct answer : (D) Detailed solution : Self-explanatory Question- 5 : After the execution of INT 20 instruction (A) The contents of stack pointer will be decremented by 1 (B) The contents of stack pointer will be decremented by 2 (C) The contents of stack pointer will be decremented by 4 (D) The contents of stack pointer will be decremented by 6 Correct answer : (D) Detailed solution : INT n (n can be 0 through 255) [SP]  [SP]- 2 [[SP]]  Flags IF  0 TF  0 [SP]  [SP]- 2 [[SP]]  [CS] [CS] 4n+ [SP]  [SP]- 2 As we can see above that the contents of stack pointer gets decremented by 2 three times. So, the correct answer is (D).