SlideShare une entreprise Scribd logo
1  sur  10
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.

Contenu connexe

Tendances

Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycleRani Rahul
 
BLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNITBLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNITRahul Sharma
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples Dr.YNM
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE Dr.YNM
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhuteAniket Bhute
 
Pipeline processing and space time diagram
Pipeline processing and space time diagramPipeline processing and space time diagram
Pipeline processing and space time diagramRahul Sharma
 
prom,pld problems
prom,pld problemsprom,pld problems
prom,pld problemsAnish Gupta
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessorAvin Mathew
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chipsAnuj Modi
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor DebrajJana4
 
8086 assembly language
8086 assembly language8086 assembly language
8086 assembly languageMir Majid
 
8051 addressing modes &amp; instruction set
8051 addressing modes &amp; instruction set8051 addressing modes &amp; instruction set
8051 addressing modes &amp; instruction setManoj Babar
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OBharat Kharbanda
 
Introduction to arm processor
Introduction to arm processorIntroduction to arm processor
Introduction to arm processorRAMPRAKASHT1
 

Tendances (20)

Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
BLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNITBLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
BLOCK DIAGRAM OF HARDWIRED CONTROL UNIT
 
Interrupts
InterruptsInterrupts
Interrupts
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
8251 usart programmable communication interface by aniket bhute
8251  usart  programmable communication interface by aniket bhute8251  usart  programmable communication interface by aniket bhute
8251 usart programmable communication interface by aniket bhute
 
Pipeline processing and space time diagram
Pipeline processing and space time diagramPipeline processing and space time diagram
Pipeline processing and space time diagram
 
SHLD and LHLD instruction
SHLD and LHLD instructionSHLD and LHLD instruction
SHLD and LHLD instruction
 
prom,pld problems
prom,pld problemsprom,pld problems
prom,pld problems
 
Memory Interface
Memory InterfaceMemory Interface
Memory Interface
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Ram and-rom-chips
Ram and-rom-chipsRam and-rom-chips
Ram and-rom-chips
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 
8086 assembly language
8086 assembly language8086 assembly language
8086 assembly language
 
8051 addressing modes &amp; instruction set
8051 addressing modes &amp; instruction set8051 addressing modes &amp; instruction set
8051 addressing modes &amp; instruction set
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
Introduction to arm processor
Introduction to arm processorIntroduction to arm processor
Introduction to arm processor
 
ARM Architecture
ARM ArchitectureARM Architecture
ARM Architecture
 

En vedette

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 answerscaitlinkelly433
 
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 questionsishan0019
 
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 Enggsanjeeev 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
 

En vedette (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
 

Similaire à viva q&a for mp lab

Microprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMicroprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMathankumar S
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csaAnjaan Gajendra
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsMerin Jesuraj
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessorssweta suman
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorRamaPrabha24
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxpvg123456
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfXyzjakhaAbhuvs
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsEkeedaPvtLtd
 
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 organizationAmrutaMehata
 
U proc ovw
U proc ovwU proc ovw
U proc ovwBrit4
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notespavihari
 
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 MALAYSIAAiman Hud
 

Similaire à 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
 
Microprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdfMicroprocessor and microcontroller (MPMC).pdf
Microprocessor and microcontroller (MPMC).pdf
 
lecture1423813120.pdf
lecture1423813120.pdflecture1423813120.pdf
lecture1423813120.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
 

Dernier

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Dernier (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

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.