Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 16

8086 Interview Questions: 1. What are the flags in 8086?

- In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag. 2. What are the various interrupts in 8086? - Maskable interrupts, Non-Maskable interrupts. 3. What is meant by Maskable interrupts? - An interrupt that can be turned off by the programmer is known as Maskable interrupt. 4. What is Non-Maskable interrupts? - An interrupt which can be never be turned off (ie.disabled) is known as NonMaskable interrupt. 5. Which interrupts are generally used for critical events? - Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off etc., 6. Give examples for Maskable interrupts? - RST 7.5, RST6.5, RST5.5 are Maskable interrupts 7. Give example for Non-Maskable interrupts? - Trap is known as Non-Maskable interrupts, which is used in emergency condition. 8. What is the Maximum clock frequency in 8086? - 5 Mhz is the Maximum clock frequency in 8086. 9. What are the various segment registers in 8086? - Code, Data, Stack, Extra Segment registers in 8086. 10. Which Stack is used in 8086? - FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is retrieved first. 11. What are the address lines for the software interrupts? RST 0 0000 H RST1 0008 H RST2 0010 H RST3 0018 H

RST4 0020 H RST5 0028 H RST6 0030 H RST7 0038 H 12. What is SIM and RIM instructions? - SIM is Set Interrupt Mask. Used to mask the hardware interrupts. RIM is Read Interrupt Mask. Used to check whether the interrupt is Masked or not. 13. Which is the tool used to connect the user and the computer? - Interpreter is the tool used to connect the user and the tool. 14. What is the position of the Stack Pointer after the PUSH instruction? - The address line is 02 less than the earlier value. 15. What is the position of the Stack Pointer after the POP instruction? - The address line is 02 greater than the earlier value. 16. Logic calculations are done in which type of registers? - Accumulator is the register in which Arithmetic and Logic calculations are done. 17. What are the different functional units in 8086? - Bus Interface Unit and Execution unit, are the two different functional units in 8086. 18. Give examples for Micro controller? - Z80, Intel MSC51 &96, Motorola are the best examples of Microcontroller. 19. What is meant by cross-compiler? - A program runs on one machine and executes on another is called as crosscompiler. 20. What are the address lines for the hardware interrupts? RST 7.5 003C H RST 6.5 0034 H RST 5.5 002C H

TRAP 0024 H 21. Which Segment is used to store interrupt and subroutine return address registers? Stack Segment in segment register is used to store interrupt and subroutine return address registers. 22. Which Flags can be set or reset by the programmer and also used to control the operation of the processor? - Trace Flag, Interrupt Flag, Direction Flag. 23. What does EU do? - Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers. 24. Which microprocessor accepts the program written for 8086 without any changes? - 8088 is that processor. 25. What is the difference between 8086 and 8088? - The BIU in 8088 is 8-bit data bus & 16- bit in 8086.Instruction queue is 4 byte long in 8088and 6 byte in 8086.

8086 interview questions


By admin | January 9, 2005
1. What are the flags in 8086? - In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero

flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.
2. What are the various interrupts in 8086? - Maskable interrupts, Non-Maskable

interrupts.
3. What is meant by Maskable interrupts? - An interrupt that can be turned off by the

programmer is known as Maskable interrupt.


4. What is Non-Maskable interrupts? - An interrupt which can be never be turned off

(ie.disabled) is known as Non-Maskable interrupt.


5. Which interrupts are generally used for critical events? - Non-Maskable interrupts are

used in critical events. Such as Power failure, Emergency, Shut off etc., 6. Give examples for Maskable interrupts? - RST 7.5, RST6.5, RST5.5 are Maskable interrupts 7. Give example for Non-Maskable interrupts? - Trap is known as Non-Maskable interrupts, which is used in emergency condition.

8. What is the Maximum clock frequency in 8086? - 5 Mhz is the Maximum clock

frequency in 8086.
9. What are the various segment registers in 8086? - Code, Data, Stack, Extra Segment

registers in 8086.
10. Which Stack is used in 8086? - FIFO (First In First Out) stack is used in 8086.In this

type of Stack the first stored information is retrieved first.


11. What are the address lines for the software interrupts? -

RST 0 0000 H RST1 RST2 RST3 RST4 RST5 RST6 RST7 0008 H 0010 H 0018 H 0020 H 0028 H 0030 H 0038 H

12. What is SIM and RIM instructions? - SIM is Set Interrupt Mask. Used to mask the

hardware interrupts. RIM is Read Interrupt Mask. Used to check whether the interrupt is Masked or not. 13. Which is the tool used to connect the user and the computer? - Interpreter is the tool used to connect the user and the tool. 14. What is the position of the Stack Pointer after the PUSH instruction? - The address line is 02 less than the earlier value. 15. What is the position of the Stack Pointer after the POP instruction? - The address line is 02 greater than the earlier value. 16. Logic calculations are done in which type of registers? - Accumulator is the register in which Arithmetic and Logic calculations are done. 17. What are the different functional units in 8086? - Bus Interface Unit and Execution unit, are the two different functional units in 8086. 18. Give examples for Micro controller? - Z80, Intel MSC51 &96, Motorola are the best examples of Microcontroller. 19. What is meant by cross-compiler? - A program runs on one machine and executes on another is called as cross-compiler. 20. What are the address lines for the hardware interrupts? RST 7.5 003C H RST 6.5 0034 H

RST 5.5 002C H TRAP 0024 H

21. Which Segment is used to store interrupt and subroutine return address registers? -

Stack Segment in segment register is used to store interrupt and subroutine return address registers. 22. Which Flags can be set or reset by the programmer and also used to control the operation of the processor? - Trace Flag, Interrupt Flag, Direction Flag. 23. What does EU do? - Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers. 24. Which microprocessor accepts the program written for 8086 without any changes? 8088 is that processor. 25. What is the difference between 8086 and 8088? - The BIU in 8088 is 8-bit data bus & 16- bit in 8086.Instruction queue is 4 byte long in 8088and 6 byte in 8086.
26.

8086 Microprocessor - Interview Questions

27. 1.What are the flags in 8086? 28. Ans:- In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag. 29. 2.What are the various interrupts in 8086? 30. Ans:- Maskable interrupts, Non-Maskable interrupts. 31. 3.What is meant by Maskable interrupts? 32. Ans:- An interrupt that can be turned off by the programmer is known as Maskable interrupt. 33. 4.What is Non-Maskable interrupts? 34. Ans:- An interrupt which can be never be turned off (ie.disabled) is known as NonMaskable interrupt. 35. 5.Which interrupts are generally used for critical events? 36. Ans:- Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off etc., 37. 6.Give examples for Maskable interrupts? 38. Ans:- RST 7.5, RST6.5, RST5.5 are Maskable interrupts 39. 7.Give example for Non-Maskable interrupts? 40. Ans:- Trap is known as Non-Maskable interrupts, which is used in emergency condition. 41. 8.What is the Maximum clock frequency in 8086? 42. Ans:- 5 Mhz is the Maximum clock frequency in 8086. 43. 9.What are the various segment registers in 8086? 44. Ans:- Code, Data, Stack, Extra Segment registers in 8086. 45. 10.Which Stack is used in 8086? 46. Ans:- FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is retrieved first. 47. 11.What are the address lines for the software interrupts? 48. Ans:-

RST RST 6 RST 7 50 0008 0010 0020 0030 0000 H 0018H 0028 H 0038 H H H H H 49. 12.What is SIM and RIM instructions? 50. Ans:- SIM is Set Interrupt Mask. Used to mask the hardware interrupts. RIM is Read Interrupt Mask. Used to check whether the interrupt is Masked or not. 51. 13.Which is the tool used to connect the user and the computer? 52. Ans:- Interpreter is the tool used to connect the user and the tool. 53. 14.What is the position of the Stack Pointer after the PUSH instruction? 54. Ans:- The address line is 02 less than the earlier value. 55. 15.What is the position of the Stack Pointer after the POP instruction? 56. Ans:- The address line is 02 greater than the earlier value. 57. 16.Logic calculations are done in which type of registers? 58. Ans:- Accumulator is the register in which Arithmetic and Logic calculations are done. 59. 17.What are the different functional units in 8086? 60. Ans:- Bus Interface Unit and Execution unit, are the two different functional units in 8086. 61. 18.Give examples for Micro controller? 62. Ans:- Z80, Intel MSC51 &96, Motorola are the best examples of Microcontroller. 63. 19.What is meant by cross-compiler? 64. Ans:- A program runs on one machine and executes on another is called as crosscompiler. 65. 20.What are the address lines for the hardware interrupts? 66. Ans:RST7.5 RST6.5 RST5.5 TRAP 003CH 0030H 002CH 0024H 67. 21.Which Segment is used to store interrupt and subroutine return address registers? 68. Ans:- Stack Segment in segment register is used to store interrupt and subroutine return address registers. 69. 22.Which Flags can be set or reset by the programmer and also used to control the operation of the processor? 70. Ans:- Trace Flag, Interrupt Flag, Direction Flag. 71. 23.What does EU do? 72. Ans:- Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers. 73. 24.Which microprocessor accepts the program written for 8086 without any changes? 74. Ans:- 8088 is that processor. 75. 25.What is the difference between 8086 and 8088? 76. Ans:- The BIU in 8088 is 8-bit data bus & 16- bit in 8086.Instruction queue is 4 byte long in 8088and 6 byte in 8086. RST 0 RST 1 RST 2 RST 3 RST 4

Microprocessor Interview Questions


hese interview questions test the knowledge of x86 Intel architecture and 8086 microprocessor specifically. 1. What is a Microprocessor? - Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor are single- chip devices. 2. Give examples for 8 / 16 / 32 bit Microprocessor? - 8-bit Processor - 8085 / Z80 / 6800; 16-bit Processor - 8086 / 68000 / Z8000; 32-bit Processor - 80386 / 80486. 3. Why 8085 processor is called an 8 bit processor? - Because 8085 processor has 8 bit ALU (Arithmetic Logic Review). Similarly 8086 processor has 16 bit ALU. 4. What is 1st / 2nd / 3rd / 4th generation processor? - The processor made of PMOS / NMOS / HMOS / HCMOS technology is called 1st / 2nd / 3rd / 4th generation processor, and it is made up of 4 / 8 / 16 / 32 bits. 5. Define HCMOS? - High-density n- type Complimentary Metal Oxide Silicon field effect transistor. 6. What does microprocessor speed depend on? - The processing speed depends on DATA BUS WIDTH. 7. Is the address bus unidirectional? - The address bus is unidirectional because the address information is always given by the Micro Processor to address a memory location of an input / output devices. 8. Is the data bus is Bi-directional? - The data bus is Bi-directional because the same bus is used for transfer of data between Micro Processor and memory or input / output devices in both the direction.

9. What is the disadvantage of microprocessor? - It has limitations on the size of data. Most Microprocessor does not support floating-point operations. 10. What is the difference between microprocessor and microcontroller? - In Microprocessor more op-codes, few bit handling instructions. But in Microcontroller: fewer op-codes, more bit handling Instructions, and also it is defined as a device that includes micro processor, memory, & input / output signal lines on a single chip. 11. What is meant by LATCH? - Latch is a D- type flip-flop used as a temporary storage device controlled by a timing signal, which can store 0 or 1. The primary function of a Latch is data storage. It is used in output devices such as LED, to hold the data for display. 12. Why does microprocessor contain ROM chips? - Microprocessor contain ROM chip because it contain instructions to execute data. 13. What is the difference between primary & secondary storage device? - In primary storage device the storage capacity is limited. It has a volatile memory. In secondary storage device the storage capacity is larger. It is a nonvolatile memory. Primary devices are: RAM / ROM. Secondary devices are: Floppy disc / Hard disk. 14. Difference between static and dynamic RAM? - Static RAM: No refreshing, 6 to 8 MOS transistors are required to form one memory cell, Information stored as voltage level in a flip flop. Dynamic RAM: Refreshed periodically, 3 to 4 transistors are required to form one memory cell, Information is stored as a charge in the gate to substrate capacitance. 15. What is interrupt? - Interrupt is a signal send by external device to the processor so as to request the processor to perform a particular work. 16. What is cache memory? - Cache memory is a small high-speed memory. It is used for temporary storage of data & information between the main memory and the CPU (center

processing unit). The cache memory is only in RAM. 17. What is called .Scratch pad of computer.? - Cache Memory is scratch pad of computer. 18. Which transistor is used in each cell of EPROM? - Floating .gate Avalanche Injection MOS (FAMOS) transistor is used in each cell of EPROM. 19. Differentiate between RAM and ROM? - RAM: Read / Write memory, High Speed, Volatile Memory. ROM: Read only memory, Low Speed, Non Voliate Memory. 20. What is a compiler? - Compiler is used to translate the high-level language program into machine code at a time. It doesn.t require special instruction to store in a memory, it stores automatically. The Execution time is less compared to Interpreter. 21. Which processor structure is pipelined? - All x86 processors have pipelined structure. 22. What is flag? - Flag is a flip-flop used to store the information about the status of a processor and the status of the instruction executed most recently 23. What is stack? - Stack is a portion of RAM used for saving the content of Program Counter and general purpose registers. 24. Can ROM be used as stack? - ROM cannot be used as stack because it is not possible to write to ROM. 25. What is NV-RAM? - Nonvolatile Read Write Memory, also called Flash memory. It is also know as shadow RAM.

MicroProcessor Interview Questions Answers (Set - 1)


What is a Microprocessor? Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor are single- chip devices. What are the flags in 8086? In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag. Why crystal is a preferred clock source? Because of high stability, large Q (Quality Factor) & the frequency that doesn?t drift with aging. Crystal is used as a clock source most of the times. In 8085 which is called as High order / Low order Register? Flag is called as Low order register & Accumulator is called as High order Register. What is Tri-state logic? Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri-state logic has a third line called enable line. What happens when HLT instruction is executed in processor? The Micro Processor enters into Halt-State and the buses are tri-stated. Which Stack is used in 8085? LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be retrieved first What is Program counter? Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction. What are the various registers in 8085? Accumulator register, Temporary register, Instruction register, Stack Pointer, Program Counter are the various registers in 8085 What is 1st / 2nd / 3rd / 4th generation processor? The processor made of PMOS / NMOS / HMOS / HCMOS technology is called 1st / 2nd / 3rd / 4th generation processor, and it is made up of 4 / 8 / 16 / 32 bits.

Name the processor lines of two major manufacturers? High-end: Intel - Pentium (II, III, 4), AMD - Athlon. Low-end: Intel - Celeron, AMD - Duron. 64-bit: Intel - Itanium 2, AMD - Opteron. What?s the speed and device maximum specs for Firewire? IEEE 1394 (Firewire) supports the maximum of 63 connected devices with speeds up to 400 Mbps. Where?s MBR located on the disk? Main Boot Record is located in sector 0, track 0, head 0, cylinder 0 of the primary active partition. Where does CPU Enhanced mode originate from? Intel?s 80386 was the first 32-bit processor, and since the company had to backward-support the 8086. All the modern Intel-based processors run in the Enhanced mode, capable of switching between Real mode (just like the real 8086) and Protected mode, which is the current mode of operation. How many bit combinations are there in a byte? Byte contains 8 combinations of bits. Have you studied buses? What types? There are three types of buses. Address bus: This is used to carry the Address to the memory to fetch either Instruction or Data. Data bus : This is used to carry the Data from the memory. Control bus : This is used to carry the Control signals like RD/WR, Select etc. What is the Maximum clock frequency in 8086? 5 Mhz is the Maximum clock frequency in 8086. What is meant by Maskable interrupts? An interrupt that can be turned off by the programmer is known as Maskable interrupt. What is Non-Maskable interrupts? An interrupt which can be never be turned off (ie. disabled) is known as Non-Maskable interrupt What are the different functional units in 8086? Bus Interface Unit and Execution unit, are the two different functional units in 8086. What are the various segment registers in 8086? Code, Data, Stack, Extra Segment registers in 8086. What does EU do? Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers. Which Stack is used in 8086? k is used in 8086? FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is retrieved first.

What are the flags in 8086? In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag. What is SIM and RIM instructions? SIM is Set Interrupt Mask. Used to mask the hardware interrupts. RIM is Read Interrupt Mask. Used to check whether the interrupt is Masked or not. What is the difference between 8086 and 8088? The BIU in 8088 is 8-bit data bus & 16- bit in 8086.Instruction queue is 4 byte long in 8088and 6 byte in 8086. Give example for Non-Maskable interrupts? Trap is known as Non-Maskable interrupts, which is used in emergency condition. Give examples for Micro controller? Z80, Intel MSC51 &96, Motorola are the best examples of Microcontroller.

1. The internal RAM memory of the 8051 is: A.32 bytes B.64 bytes C.128 bytes D.256 bytes 2. This program code will be executed continuously: STAT: MOV A, #01H JNZ STAT A.True B.False 3. The 8051 has ________ 16-bit counter/timers. A.1 B.2 C.3 D.4

4. The address space of the 8051 is divided into four distinct areas: internal data, external data, internal code, and external code. a A.True B.False 5. Data transfer from I/O to external data memory can only be done with the MOVX command.a

A.True

B.False

6. The 8051 can handle ________ interrupt sources. A.3 B.4 C.5 D.6 Answer: Option C Explanation: There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be enabled or disabled by setting bits of the IE register. Likewise, the whole interrupt system can be disabled by clearing the EA bit of the same register. 7. The special function registers are maintained in the next 128 locations after the generalpurpose data storage and stack. A.True B.False Answer: Option A 8. This statement will set the address of the bit to 1 (8051 Micro-controller): SETB 01H A.True B.False Answer: Option B 9. MOV A, @ R1 will: A.copy R1 to the accumulator B.copy the accumulator to R1 C.copy the contents of memory whose address is in R1 to the accumulator D.copy the accumulator to the contents of memory whose address is in R1 Answer: Option C 10.A label is used to name a single line of code. A.True B.False Answer: Option A 11. The following program will receive data from port 1, determine whether bit 2 is high, and then send the number FFH to port 3: READ: MOV A,P1 ANL A,#2H

CJNE A,#02H,READ MOV P3,#FFH A.True Answer: Option A

B.False

12. Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external oscillator or crystal. A.True B.False Answer: Option A 13. When the 8051 is reset and the program instruction in the: A.internal code memory B.external code memory C.internal data memory D.external data memory Answer: Option A 14. An alternate function of port pin P3.4 in the 8051 is: A.Timer 0 B.Timer 1 C.interrupt 0 D.interrupt 1 Answer: Option A 15. Both registers TL0 and TL1 are needed to start Timer 0. A.True B.False Answer: Option B 16. The I/O ports that are used as address and data for external memory are: A.ports 1 and 2 B.ports 1 and 3 C.ports 0 and 2 D.ports 0 and 3 Answer: Option C 17. The last 96 locations in the internal data memory are reserved for general-purpose data storage and stack. A.True B.False line is HIGH, the program counter points to the first

Answer: Option B 18. Microcontrollers often have: A.CPUs B.RAM C.ROM D.all of the above Answer: Option D 19. The 8051 has ________ parallel I/O ports. A.2 B.3 C.4 D.5 Answer: Option C 20. The total external data memory that can be interfaced to the 8051 is: A.32K B.64K C.128K D.256K Answer: Option B 21. Which of the following instructions will load the value 35H into the high byte of timer 0? A.MOV TH0, #35H B.MOV TH0, 35H C.MOV T0, #35H D.MOV T0, 35H Answer: Option A 22. Bit-addressable memory locations are: A.10H through 1FH B.20H through 2FH C.30H through 3FH D.40H through 4FH Answer: Option B 23. The 8-bit address bus allows access to an address range of: A.0000 to FFFFH B.000 to FFFH C.00 to FFH D.0 to FH Answer: Option C

24. The contents of the accumulator after this operation MOV A,#0BH ANL A,#2CH will be A.11010111 B.11011010 C.00001000 D.00101000 Answer: Option C 25. The start-conversion on the ADC0804 is done by using the: A. B.CS line C.INTR line D.V ref/2 line Answer: Option A

You might also like