SlideShare a Scribd company logo
MicroProcessor:-
Def:-A MicroProcessor is a multipurpose, programmable, clock-driven,
register-based electronic device that reads binary instructions from a storage
device called memory, accepts binary data as input and processes the data
according to those instructions, and provides results as output.
Viva Questions and Answers in MP lab
1) What is MicroProcessor?
A: - A MicroProcessor is a multipurpose, programmable, clock-driven,
register-based electronic device that reads binary instructions from a storage
device called memory, accepts binary data as input and processes the data
according to those instructions, and provides results as output.
2) What are the different types of Addressing Modes?
A: - There are 12 different types of Addressing Modes. They are:-
<1> Immediate:-The Immediate data is a part of instruction, and appears in
the form of successive bytes.
<2> Direct:-A 16-bit memory address (offset) is directly specified in the
instruction as a part of it.
<3> Register:-Data is stored in a register and it is referred using the
particular register (except IP).
<4> Register Indirect:-The address of the memory location which contains
data or operand is determined in an indirect way.
<5> Indexed:-offset of the operand is stored in one of the index registers.
<6> Register Relative:-The data is available at an effective address formed
by adding an 8-bit or 16-bit displacement with the content of any one of the
registers BX,BP,SI and DI in the default (either DS or ES) segment.
<7> Based Indexed:-The effective address of the data is formed, in this
addressing mode, by adding content of a base register to the content of an
index register.
<8> Relative Based Indexed: - The effective address is formed by adding an
8 or 16-bit displacement with the sum of contents of any one of the base
registers and any one of the index registers, in the default segment.
<9> Intrasegment Direct Mode:-In this mode, the address to which the
control is to be transferred lies in the segment in which the control transfer
instruction lies and appears directly in the instruction as an immediate
displacement value.
<10> Intrasegment Indirect Mode:-In this mode, the displacement to which
the control is to be transferred, is in the same segment in which the control
transfer instruction lies, but it is passed to the instruction indirectly.
<11> Intersegment Direct:-In this mode, the address to which the control is
to be transferred is in a different segment.
<12> Intersegment Indirect:-In this mode, the address to which the control is
to be transferred lies in a different segment and it is passed to the instruction
indirectly sequentially.
3) What are the General Data Registers & their uses?
A: - The Registers AX, BX, CX, DX are the general Purpose 16-bit
registers. AX register as 16-bit accumulator. BX register is used as an offset
Storage. CX register is used as default or implied counter. Dx register is
used as an implicit operand or destination in case of a few instructions.
4) What are Segment Registers & their uses?
A:-There are 4 Segment Registers Code Segment (CS), Data Segment (DS),
Extra Segment (ES) & Stack Segment (SS) registers. CS is used for
addressing memory location in code. DS is used to points the data. ES refers
to a segment which is essentially in another data segment. SS is used for
addressing stack segment of memory.
5) What are Flag registers?
A:-Divided into 2 parts:-Condition code or status flags and machine control
flags.
S-Sign Flag:-Is to set when the result of any computation is negative.
Z-Zero Flag:-Is to set if the result of the computation or comparison
performed by the previous instruction is zero.
C-Carry Flag:-Is set when there is carry out of MSB in case of addition or
borrow in case of subtraction.
T-Trap Flag:-Is set, the processor enters the single step execution mode.
I-Interrupt Flag:-Is set, the mask able interrupts are recognized by the CPU.
D-Direction Flag:-Is set for auto incrementing or auto decrementing mode in
string manipulation instructions.
AC-Auxiliary Carry Flag:-Is set if there is a carry from the lowest nibble
during addition or borrow for the lowest nibble.
O-Overflow Flag:-Is set if the result of a signed operation is large enough to
be accommodated in a destination register.
6) What does the 8086 Architecture contain?
A:-The complete architecture of 8086 can be divided into 2 types:-Bus
Interface Unit (BIU) & Execution Unit.
The BIU contains the circuit for physical address calculations and a pre
coding instruction byte queue & it makes the bus signals available for
external interfacing of the devices.
The EU contains the register set of 8086 except segment registers and IP. It
has a 16-bit ALU, able to perform arithmetic and Logic operations.
7) What are Data Copy/Transfer Instructions?
A: - Mov
Push
Pop
Xchg
In
Out
Xlat
Lea
Lds/Les
Lahf
Sahf
Pushf
Popf
8) What are Machine Control Instructions?
A: - Nop
Hlt
Wait
Lock
9) What are Flag Manipulation Instructions?
A: - Cld
Std
Cli
Sti
10) What are String Instructions?
A: - Rep
MovSB/MovSW
Cmps
Scas
Lods
Stos
11) What are different parts for 8086 architecture?
A:-The answer is in 6th.
A: - The complete architecture of 8086 can be divided into 2types:-Bus
Interface Unit (BIU) & Execution Unit.
The BIU contains the circuit for physical address calculations and a pre
coding instruction byte queue & it makes the bus signals available for
external interfacing of the devices.
The EU contains the register set of 8086 except segment registers and IP. It
has a 16-bit ALU, able to perform arithmetic and Logic operations.
MP Unit5
Interrupts
Def: - An interrupt operation suspends execution of a program so that the
system can take special action. The interrupt routine executes and normally
returns control to the interrupted procedure, which then resumes execution.
BIOS handle Int 00H-1FH, whereas DOS handles INT 20H-3FH.
Viva questions and answers for mp lab {NEW}
Viva Questions and Answers
1. What is an Opcode?
A:-The part of the instruction that specifies the operation to be performed is
called the Operation code or Op code.
2. What is an Operand?
A:-The data on which the operation is to be performed is called as an
Operand.
3. Explain the difference between a JMP and CALL instruction?
A:-A JMP instruction permanently changes the program counter.
A CALL instruction leaves information on the stack so that the original
program execution sequence can be resumed.
4. What is meant by Polling?
A: - Polling or device Polling is a process which identifies the device that
has interrupted the microprocessor.
5. What is meant by Interrupt?
A:-Interrupt is an external signal that causes a microprocessor to jump to a
specific subroutine.
6. What is an Instruction?
A:-An instruction is a binary pattern entered through an input device to
command the microprocessor to perform that specific function.
7. What is Microcontroller and Microcomputer?
A: - Microcontroller is a device that includes microprocessor: memory and
I/O signal lines on a single chip, fabricated using VLSI technology.
Microcomputer is a computer that is designed using microprocessor as its
CPU. It includes microprocessor, memory and I/O.
8. What is Assembler?
A:-The assembler translates the assembly language program text which is
given as input to the assembler to their binary equivalents known as object
code.
The time required to translate the assembly code to object code is called
access time. The assembler checks for syntax errors & displays them before
giving the object code.
9. Define Variable?
A:-A Variable is an identifier that is associated with the first byte of data
item.
10. Explain Dup?
A:-The DUP directive can be used to initialize several locations & to assign
values to these locations.
11. Define Pipelining?
A:-In 8086, to speedup the execution program, the instructions fetching and
execution of instructions are overlapped each other. This is known as
Pipelining.
12. What is the use of HLDA?
A:-HLDA is the acknowledgment signal for HOLD. It indicates whether the
HOLD signal is received or not.
HOLD and HLDA are used as the control signals for DMA operations.
13. Explain about "LEA"?
A:-LEA (Load Effective Address) is used for initializing a register with an
offset address.
A common use for LEA is to initialize an offset in BX, DI or SI for indexing
an address in memory.
An equivalent operation to LEA is MOV with the OFFSET operator, which
generates slightly shorter machine code.
14. Difference between "Shift" and "Rotate".
A:-Shift and Rotate commands are used to convert a number to another form
where some bits are shifted or rotated.
A rotate instruction is a closed loop instruction. That is, the data moved out
at one end is put back in at the other end.
The shift instruction loses the data that is moved out of the last bit locations.
Basic difference between shift and rotate is shift command makes "fall of”
bits at the end of the register.
Where rotate command makes "wrap around" at the end of the register.
15. Explain about .MODEL SMALL?
A: - .MODEL directive:-This simplified segment directive creates default
segments and the required ASSUME and GROUP statements.
Its format is .MODEL memory-model. The following are the memory
models
Tiny:-Code and data in one segment, for .COM programs.
Small:-Code in one segment (<=64K), data in one segment (<=64K). It
generates 16-bit offset addresses.
Medium:-Any number of code segments, data in one segment (<=64K).
Compact:-Code in one segment (<=64K), any number of data segments. It
generates 32-bit addresses, which require more time for execution.
Large:-Code and data both in any number of segments, no array >64K.
Huge:-Code and data both in any number of segments, arrays may be >64K.
Flat:-Defines one area up to 4 gigabytes for both code and data. It is un
segmented. The program uses 32-bit addressing and runs under Windows in
protected mode.
16. Difference between JMP and JNC?
A:-JMP is Unconditional Branch.
JNC is Conditional Branch.
17. List the String Manipulation Commands?
A:-REP=Repeat.
MOVS=Move Byte/Word
CMPS=Compare Byte/Word
SCAS=Scan Byte/Word
LODS=Load byte/Wd to AL/AX
STOS=Store Byte/Wd from AL/A
18. What are the 4 Segments?
A:-Code Segment Register {CS}
Data Segment Register {DS}
Extra Segment Register {ES}
Stack Segment Register {SS}
19. What is the main use of ready pin?
A:-READY is used by the microprocessor to check whether a peripheral is
ready to accept or transfer data.
A peripheral may be a LCD display or analog to digital converter or any
other.
These peripherals are connected to microprocessor using the READY pin.
If READY is high then the periphery is ready for data transfer. If not the
microprocessor waits until READY goes high.
20. Explain about Direction Flag?
A:-This is used by string manipulation instructions.
If this flag bit is 0, the string is processed beginning from the lowest to the
highest address, i.e, Auto increment mode.
Otherwise, the string is processed from the highest towards the lowest
address, i.e, Auto decrementing mode.
These peripherals are connected to microprocessor using the READY pin.
If READY is high then the periphery is ready for data transfer. If not the
microprocessor waits until READY goes high.
20. Explain about Direction Flag?
A:-This is used by string manipulation instructions.
If this flag bit is 0, the string is processed beginning from the lowest to the
highest address, i.e, Auto increment mode.
Otherwise, the string is processed from the highest towards the lowest
address, i.e, Auto decrementing mode.

More Related Content

What's hot

Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
Sadaf Rasheed
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
Sanjeev Patel
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unitAnuj Modi
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
Apar Pramod
 
Micro program example
Micro program exampleMicro program example
Micro program example
rajshreemuthiah
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
MNM Jain Engineering College
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
Vijay Kumar
 
Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086aviban
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
AJAL A J
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
Selvaraj Seerangan
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
rishi ram khanal
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
Page Maker
 
Presentation on bipolar encoding
Presentation on bipolar encodingPresentation on bipolar encoding
Presentation on bipolar encoding
District Administration
 
8255 programming
8255 programming8255 programming
8255 programming
Jeyalaksmi V Professor ECE
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
Harshit Jaysan Sharma
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
SubhamSatpathy2
 

What's hot (20)

Stack organization
Stack organizationStack organization
Stack organization
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Timing and-control-unit
Timing and-control-unitTiming and-control-unit
Timing and-control-unit
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
 
Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
Presentation on bipolar encoding
Presentation on bipolar encodingPresentation on bipolar encoding
Presentation on bipolar encoding
 
8255 programming
8255 programming8255 programming
8255 programming
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
 
8253ppt
8253ppt8253ppt
8253ppt
 

Viewers also liked

Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersAbhijith Augustine
 
Analog & Digital Integrated Circuits - Material (Short Answers)
Analog & Digital Integrated Circuits -  Material (Short Answers) Analog & Digital Integrated Circuits -  Material (Short Answers)
Analog & Digital Integrated Circuits - Material (Short Answers)
Mathankumar S
 
Top 10 ece teacher interview questions and answers
Top 10 ece teacher interview questions and answersTop 10 ece teacher interview questions and answers
Top 10 ece teacher interview questions and answers
caitlinkelly433
 
Vlsi lab viva question with answers
Vlsi lab viva question with answersVlsi lab viva question with answers
Vlsi lab viva question with answersAyesha Ambreen
 
Basic+electronic+interview+questions+and+answers
Basic+electronic+interview+questions+and+answersBasic+electronic+interview+questions+and+answers
Basic+electronic+interview+questions+and+answersMohan Raj
 
Digital communication viva questions
Digital communication viva questionsDigital communication viva questions
Digital communication viva questions
ishan0019
 
Interview Questions-Basics of Electronics and Communication Engg
 Interview Questions-Basics of Electronics and Communication Engg Interview Questions-Basics of Electronics and Communication Engg
Interview Questions-Basics of Electronics and Communication Engg
sanjeeev bahadur, m.tech,mba
 
Ece interview questions with answers
Ece interview questions with answersEce interview questions with answers
Ece interview questions with answersmanish katara
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 

Viewers also liked (9)

Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answers
 
Analog & Digital Integrated Circuits - Material (Short Answers)
Analog & Digital Integrated Circuits -  Material (Short Answers) Analog & Digital Integrated Circuits -  Material (Short Answers)
Analog & Digital Integrated Circuits - Material (Short Answers)
 
Top 10 ece teacher interview questions and answers
Top 10 ece teacher interview questions and answersTop 10 ece teacher interview questions and answers
Top 10 ece teacher interview questions and answers
 
Vlsi lab viva question with answers
Vlsi lab viva question with answersVlsi lab viva question with answers
Vlsi lab viva question with answers
 
Basic+electronic+interview+questions+and+answers
Basic+electronic+interview+questions+and+answersBasic+electronic+interview+questions+and+answers
Basic+electronic+interview+questions+and+answers
 
Digital communication viva questions
Digital communication viva questionsDigital communication viva questions
Digital communication viva questions
 
Interview Questions-Basics of Electronics and Communication Engg
 Interview Questions-Basics of Electronics and Communication Engg Interview Questions-Basics of Electronics and Communication Engg
Interview Questions-Basics of Electronics and Communication Engg
 
Ece interview questions with answers
Ece interview questions with answersEce interview questions with answers
Ece interview questions with answers
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 

Similar to viva q&a for mp lab

microprocessor
 microprocessor microprocessor
microprocessor
ATTO RATHORE
 
Microprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMicroprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answers
Mathankumar S
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
Anjaan Gajendra
 
Micro overview
Micro overviewMicro overview
Micro overview
lamamokalled
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsMerin Jesuraj
 
Bt0068
Bt0068Bt0068
Bt0068
Simpaly Jha
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessorssweta suman
 
8085 intro
8085 intro8085 intro
8085 intro
deval patel
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
RamaPrabha24
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
pvg123456
 
lecture1423813120.pdf
lecture1423813120.pdflecture1423813120.pdf
lecture1423813120.pdf
Akhilesh Mishra
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdf
XyzjakhaAbhuvs
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
EkeedaPvtLtd
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
Mani Kandan K
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
AmrutaMehata
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
Brit4
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
pavihari
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller
Raja pirian
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 

Similar to viva q&a for mp lab (20)

microprocessor
 microprocessor microprocessor
microprocessor
 
Microprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMicroprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answers
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
Micro overview
Micro overviewMicro overview
Micro overview
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applications
 
Bt0068
Bt0068Bt0068
Bt0068
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessors
 
8085 intro
8085 intro8085 intro
8085 intro
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
lecture1423813120.pdf
lecture1423813120.pdflecture1423813120.pdf
lecture1423813120.pdf
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdf
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
 
Bc0040
Bc0040Bc0040
Bc0040
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 

Recently uploaded (20)

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 

viva q&a for mp lab

  • 1. MicroProcessor:- Def:-A MicroProcessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes the data according to those instructions, and provides results as output. Viva Questions and Answers in MP lab 1) What is MicroProcessor? A: - A MicroProcessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes the data according to those instructions, and provides results as output. 2) What are the different types of Addressing Modes? A: - There are 12 different types of Addressing Modes. They are:- <1> Immediate:-The Immediate data is a part of instruction, and appears in the form of successive bytes. <2> Direct:-A 16-bit memory address (offset) is directly specified in the instruction as a part of it. <3> Register:-Data is stored in a register and it is referred using the particular register (except IP). <4> Register Indirect:-The address of the memory location which contains data or operand is determined in an indirect way. <5> Indexed:-offset of the operand is stored in one of the index registers. <6> Register Relative:-The data is available at an effective address formed by adding an 8-bit or 16-bit displacement with the content of any one of the registers BX,BP,SI and DI in the default (either DS or ES) segment. <7> Based Indexed:-The effective address of the data is formed, in this addressing mode, by adding content of a base register to the content of an index register.
  • 2. <8> Relative Based Indexed: - The effective address is formed by adding an 8 or 16-bit displacement with the sum of contents of any one of the base registers and any one of the index registers, in the default segment. <9> Intrasegment Direct Mode:-In this mode, the address to which the control is to be transferred lies in the segment in which the control transfer instruction lies and appears directly in the instruction as an immediate displacement value. <10> Intrasegment Indirect Mode:-In this mode, the displacement to which the control is to be transferred, is in the same segment in which the control transfer instruction lies, but it is passed to the instruction indirectly. <11> Intersegment Direct:-In this mode, the address to which the control is to be transferred is in a different segment. <12> Intersegment Indirect:-In this mode, the address to which the control is to be transferred lies in a different segment and it is passed to the instruction indirectly sequentially. 3) What are the General Data Registers & their uses? A: - The Registers AX, BX, CX, DX are the general Purpose 16-bit registers. AX register as 16-bit accumulator. BX register is used as an offset Storage. CX register is used as default or implied counter. Dx register is used as an implicit operand or destination in case of a few instructions. 4) What are Segment Registers & their uses? A:-There are 4 Segment Registers Code Segment (CS), Data Segment (DS), Extra Segment (ES) & Stack Segment (SS) registers. CS is used for addressing memory location in code. DS is used to points the data. ES refers to a segment which is essentially in another data segment. SS is used for addressing stack segment of memory. 5) What are Flag registers? A:-Divided into 2 parts:-Condition code or status flags and machine control flags. S-Sign Flag:-Is to set when the result of any computation is negative. Z-Zero Flag:-Is to set if the result of the computation or comparison performed by the previous instruction is zero.
  • 3. C-Carry Flag:-Is set when there is carry out of MSB in case of addition or borrow in case of subtraction. T-Trap Flag:-Is set, the processor enters the single step execution mode. I-Interrupt Flag:-Is set, the mask able interrupts are recognized by the CPU. D-Direction Flag:-Is set for auto incrementing or auto decrementing mode in string manipulation instructions. AC-Auxiliary Carry Flag:-Is set if there is a carry from the lowest nibble during addition or borrow for the lowest nibble. O-Overflow Flag:-Is set if the result of a signed operation is large enough to be accommodated in a destination register. 6) What does the 8086 Architecture contain? A:-The complete architecture of 8086 can be divided into 2 types:-Bus Interface Unit (BIU) & Execution Unit. The BIU contains the circuit for physical address calculations and a pre coding instruction byte queue & it makes the bus signals available for external interfacing of the devices. The EU contains the register set of 8086 except segment registers and IP. It has a 16-bit ALU, able to perform arithmetic and Logic operations. 7) What are Data Copy/Transfer Instructions? A: - Mov Push Pop Xchg In Out Xlat Lea Lds/Les Lahf Sahf Pushf Popf 8) What are Machine Control Instructions? A: - Nop Hlt Wait
  • 4. Lock 9) What are Flag Manipulation Instructions? A: - Cld Std Cli Sti 10) What are String Instructions? A: - Rep MovSB/MovSW Cmps Scas Lods Stos 11) What are different parts for 8086 architecture? A:-The answer is in 6th. A: - The complete architecture of 8086 can be divided into 2types:-Bus Interface Unit (BIU) & Execution Unit. The BIU contains the circuit for physical address calculations and a pre coding instruction byte queue & it makes the bus signals available for external interfacing of the devices. The EU contains the register set of 8086 except segment registers and IP. It has a 16-bit ALU, able to perform arithmetic and Logic operations. MP Unit5 Interrupts Def: - An interrupt operation suspends execution of a program so that the system can take special action. The interrupt routine executes and normally returns control to the interrupted procedure, which then resumes execution. BIOS handle Int 00H-1FH, whereas DOS handles INT 20H-3FH.
  • 5.
  • 6. Viva questions and answers for mp lab {NEW} Viva Questions and Answers 1. What is an Opcode? A:-The part of the instruction that specifies the operation to be performed is called the Operation code or Op code. 2. What is an Operand? A:-The data on which the operation is to be performed is called as an Operand. 3. Explain the difference between a JMP and CALL instruction? A:-A JMP instruction permanently changes the program counter. A CALL instruction leaves information on the stack so that the original program execution sequence can be resumed. 4. What is meant by Polling? A: - Polling or device Polling is a process which identifies the device that has interrupted the microprocessor. 5. What is meant by Interrupt? A:-Interrupt is an external signal that causes a microprocessor to jump to a specific subroutine. 6. What is an Instruction? A:-An instruction is a binary pattern entered through an input device to command the microprocessor to perform that specific function. 7. What is Microcontroller and Microcomputer? A: - Microcontroller is a device that includes microprocessor: memory and I/O signal lines on a single chip, fabricated using VLSI technology. Microcomputer is a computer that is designed using microprocessor as its CPU. It includes microprocessor, memory and I/O. 8. What is Assembler? A:-The assembler translates the assembly language program text which is given as input to the assembler to their binary equivalents known as object code.
  • 7. The time required to translate the assembly code to object code is called access time. The assembler checks for syntax errors & displays them before giving the object code. 9. Define Variable? A:-A Variable is an identifier that is associated with the first byte of data item. 10. Explain Dup? A:-The DUP directive can be used to initialize several locations & to assign values to these locations. 11. Define Pipelining? A:-In 8086, to speedup the execution program, the instructions fetching and execution of instructions are overlapped each other. This is known as Pipelining. 12. What is the use of HLDA? A:-HLDA is the acknowledgment signal for HOLD. It indicates whether the HOLD signal is received or not. HOLD and HLDA are used as the control signals for DMA operations. 13. Explain about "LEA"? A:-LEA (Load Effective Address) is used for initializing a register with an offset address. A common use for LEA is to initialize an offset in BX, DI or SI for indexing an address in memory. An equivalent operation to LEA is MOV with the OFFSET operator, which generates slightly shorter machine code. 14. Difference between "Shift" and "Rotate". A:-Shift and Rotate commands are used to convert a number to another form where some bits are shifted or rotated. A rotate instruction is a closed loop instruction. That is, the data moved out at one end is put back in at the other end. The shift instruction loses the data that is moved out of the last bit locations. Basic difference between shift and rotate is shift command makes "fall of” bits at the end of the register. Where rotate command makes "wrap around" at the end of the register.
  • 8. 15. Explain about .MODEL SMALL? A: - .MODEL directive:-This simplified segment directive creates default segments and the required ASSUME and GROUP statements. Its format is .MODEL memory-model. The following are the memory models Tiny:-Code and data in one segment, for .COM programs. Small:-Code in one segment (<=64K), data in one segment (<=64K). It generates 16-bit offset addresses. Medium:-Any number of code segments, data in one segment (<=64K). Compact:-Code in one segment (<=64K), any number of data segments. It generates 32-bit addresses, which require more time for execution. Large:-Code and data both in any number of segments, no array >64K. Huge:-Code and data both in any number of segments, arrays may be >64K. Flat:-Defines one area up to 4 gigabytes for both code and data. It is un segmented. The program uses 32-bit addressing and runs under Windows in protected mode. 16. Difference between JMP and JNC? A:-JMP is Unconditional Branch. JNC is Conditional Branch. 17. List the String Manipulation Commands? A:-REP=Repeat. MOVS=Move Byte/Word CMPS=Compare Byte/Word SCAS=Scan Byte/Word LODS=Load byte/Wd to AL/AX STOS=Store Byte/Wd from AL/A 18. What are the 4 Segments? A:-Code Segment Register {CS} Data Segment Register {DS} Extra Segment Register {ES} Stack Segment Register {SS} 19. What is the main use of ready pin? A:-READY is used by the microprocessor to check whether a peripheral is ready to accept or transfer data. A peripheral may be a LCD display or analog to digital converter or any other.
  • 9. These peripherals are connected to microprocessor using the READY pin. If READY is high then the periphery is ready for data transfer. If not the microprocessor waits until READY goes high. 20. Explain about Direction Flag? A:-This is used by string manipulation instructions. If this flag bit is 0, the string is processed beginning from the lowest to the highest address, i.e, Auto increment mode. Otherwise, the string is processed from the highest towards the lowest address, i.e, Auto decrementing mode.
  • 10. These peripherals are connected to microprocessor using the READY pin. If READY is high then the periphery is ready for data transfer. If not the microprocessor waits until READY goes high. 20. Explain about Direction Flag? A:-This is used by string manipulation instructions. If this flag bit is 0, the string is processed beginning from the lowest to the highest address, i.e, Auto increment mode. Otherwise, the string is processed from the highest towards the lowest address, i.e, Auto decrementing mode.