You are on page 1of 12

1Question 1. Define The Jobs Performed By The Biu And Eu In The 8086.?

2Answer :
3The functions performed by the Bus interface unit are:
·The BIU is responsible for the external bus operations.
·It performs fetching, reading, writing for memory as well as I/O of data for peripheral
devices.
·The BIU also performs address generation and the population of the instruction queue.
1The Execution unit is responsible for the following work:
·The instructions are decoded and executed by it.
·The EU accepts instructions from the instruction queue and from the general purpose
registers it takes data.
·It has no relation with the system buses.
1Question 2. How Are Assemblers Aided By The Use Of Modular Programming Techniques.?
2Answer :
3The advantages of using modular programming techniques are as follows:
·By using a modular programming approach the user is able to use macros, macros are
sections of code which execute in one go upon being activated. These macros can be reused
throughout the program.
·The use of modular programming technique also helps the user to use subroutines these
can also be considered to be procedures which can provide greater control over the
functioning.
·By using this approach the data that is used can be structured and can be globally accessed
by other modules whoever requires it.
1Question 3. Explain The Two Types Of Conditional Jumps.?
2Answer :
·The two types of unconditional jumps are intersegment and intrasegment jumps.
·In the case of intrasegment jumps as the name suggest is a special type of jump in which the
address to which the jump is to be performed is present / lies in the same code segment from
where the jump is performed from. In order to perform this jump changes just need to be
made in the Instruction pointer.
·In the case of intersegment jumps the jump takes place from one segment to another. In
order to be able to make these kinds of jumps the changes need to be made in both the code
segment and the instruction pointer.
1Question 4. Briefly Explain How Instruction Operations In 8086 Can Be Classified.?
2Answer :
3The arithmetic operations in the 8086 can be categorized as follows:
·Data transfer instructions: These types of instructions involve transfer data using
commands such as MOV etc.
·Arithmetic instructions: As their name suggest these instructions are used to perform
arithmetic operations for ex. ADD, SUB etc. 
·Logic instructions: Performs special logical gate operations ex NOT OPR etc.
·Shift instructions: Used for shift operations in special conditions ex. SHL, SHR.
·Rotate instructions: They are used to rotate left, right ex. ROL, ROR.
·Flag control instructions: They are used to configure the various flags such as: STC, CLC,
CMC, STD etc.
·Compare instructions: As their name suggests they are used to perform compare
operations
·Jump instructions: Used to perform the Jump Operations
·Subroutines and subroutine handling instructions: Primarily are used for interrupt
handlings ex. IRET, INT etc.
·Loop and loop handling instructions: Used to handle loop operations
·Strings and string handling instructions: Performed solely on strings.
1Question 5. Write Down The Comparisons Between The 8086 And 8088?
2Answer :
3Features of the 8086:
·A data width of 2 byte is attained by the de multiplexing of AD0 to AF15 pins.
·The instruction queue is of 6 bytes.
·From the memory the fetching of a program is performed only once there are 2 byte empty
in queue.
·The BIU of 8086 is not as same as in the 8088 but the EU is similar.
1Features of the 8088:
·It requires a 1 byte data width which is generated after the de multiplexing of AD0 to AD7
pins.
·The instruction queue is 4-bytes.
·Program fetching is performed as soon as there is a byte empty in queue.
1Question 6. Briefly Explain The Pointers And Index Group Of Registers.?
2Answer :
·Stack pointer and base pointer are the two pointer registers whereas the Source index and
Destination index are the index group of registers.
·They are primarily used to store relative to segment registers the locations of offset
addresses of memory locations. They serve the purpose of being memory pointers.
·The source index and destination index are also used as general purpose register. In such
cases the SI and DI are implemented as source and destination index registers.
·In stacks, data areas might exist, to be able to access such data which contains the BP
register.
1Question 7. Briefly Explain The Three Different Types Of Control Flags For The 8086.?
2Answer :
·The 8086 has three control flags namely TF, IF and DF. All three of them can be user
programmed to suit their needs.
·The trap flag allows the cpu to run in a single stepping mode. This comes in very handy in
debugging and development purposes.
·The interrupt flag causes the INTR ( maskable interrupt ) to be enabled else it would remain
disabled. Whenever the cpu is reset so is IF reset / cleared.
·In string operations primarily the Direction flag is used. The STD instruction is responsible for
the setting of the DF.
1Question 8. Explain The Types Of Interrupts From Type 0 To 4 Briefly.?
2Answer :
3The following are the various types of interrupts:
·Type 0 interrupts: This interrupt is also known as the divide by zero interrupt. For cases
where the quotient becomes particularly large to be placed / adjusted an error might occur.
·Type 1 interrupts: This is also known as the single step interrupt. This type of interrupt is
primarily used for debugging purposes in assembly language.
·Type 2 interrupts: also known as the non-maskable NMI interrupts. These type of interrupts
are used for emergency scenarios such as power failure.
·Type 3 interrupts: These type of interrupts are also known as breakpoint interrupts. When
this interrupt occurs a program would execute up to its break point.
·Type 4 interrupts: Also known as overflow interrupts is generally existent after an arithmetic
operation was performed.
1Question 9. Mention The Internal Interrupts Characteristics.?
2Answer :
3Some of the characteristics of internal interrupts are as follows:
·The type of code of an interrupt is either predefined or can be contained within the
instruction itself.
·In case of INTR interrupt inputs the generation of complementary INTA bus cycles are not
generated.
·No internal interrupt can be disabled in the case of such interrupts barring single step
interrupts.
·Priority Wise always the internal interrupts barring single step interrupts are always given
higher priority as compared to external interrupts.
1Question 10. List Out The Differences Between Isolated I/o And Memory Mapped I/o.?
2Answer :
3The characteristics of isolated I/O are as follows:
·The devices of I/O are treated in a separate domain as compared to memory.
·A total of 1mb address space is allowed for memory applications.
·In order to maximize the I/O operations ( isolated ) separate instructions are always
provided to perform these operations.
·One of the disadvantages is that the data transfer only occurs between the I/O port and the
AL, AX registers.
1The characteristics of the memory mapped I/O are as follows:
·In such scenarios the devices (I/O) are treated as a part of the memory only.
·Complete 1mb of memory cannot be used as they are a part of the memory.
·In case of memory mapped I/O operations no external separate instructions are required.
·There is data transfer restriction in case of memory mapped instructions.
1Question 11. List Out The Differences Between Isolated I/o And Memory Mapped I/o.?
2Answer :
3The characteristics of isolated I/O are as follows:
·The devices of I/O are treated in a separate domain as compared to memory.
·A total of 1mb address space is allowed for memory applications.
·In order to maximize the I/O operations ( isolated ) separate instructions are always
provided to perform these operations.
·One of the disadvantages is that the data transfer only occurs between the I/O port and the
AL, AX registers.
1The characteristics of the memory mapped I/O are as follows:
·In such scenarios the devices (I/O) are treated as a part of the memory only.
·Complete 1mb of memory cannot be used as they are a part of the memory.
·In case of memory mapped I/O operations no external separate instructions are required.
·There is data transfer restriction in case of memory mapped instructions.
1Question 12. Write The Assembly Language Programming To Find The 2's Complement For A
String Of 100 Bytes.?
2Answer :
3The following would be the code:
·2000 CLD : Clears the direction flag
·2001 MOV SI, 4000 H : In the SI the store address is placed
·2004 MOV DI, 5000 H : In the DI the destination address is put
·2007 MOV CX, 0064 H : In the CX the number of bytes to be 2`s complemented are placed
·200A LODSB : The data byte is give to AL and INC SI
·200B NEGAL : AL of 2`s complement.
·200D STOSB : Current AL value into DI and INC DI
·200E LOOPNZ 200A H : The loop is maintained till CX becomes = 0.
·2010 HLT : Stop.
1Question 13. Explain Briefly In Steps What Happens When An Interrupt Occurs.?
2Answer :
3The following steps occur when an interrupt occurs ( both for hardware and software ):
·First thing the contents of the flag register the CS and IP are pushed into the stack.
·To disable the single steps and INTR interrupts the TF and IF are cleared.
·The program then jumps to the beginning or starting address of the ISS.
·When the IRET gets executed in the last line ( this occurs at the end of the ISS) the CS and IP
flag contents are popped from the stack and placed in the appropriate registers.
·Once all the flags are restored to their original condition the IF and TF are also restored to
their previous values.
1Question 14. Point Out The Differences Between The Nmi And Intr?
2Answer :
3The characteristics of NMI are as follows:
·They are also known as the non-maskable types.
·They are always give higher priorities over the INTR.
·The interrupt is edge triggered specifically Low to High transition.
·In order to function they must remain high for at least 2 cycles of CLK.
·These interrupts do not send out any form of acknowledgements.
1The characteristics of INTR are:
·They are also known as the maskable types of interrupts.
·They have a lower priority as compared to NMI.
·These interrupts are level triggered and not edge triggered.
·These interrupts do not support latching and must remain high till the CPU acknowledges
them to do so.
1Question 15. Point Out The Major Differences In Short Label And Near Label Jump Instructions.?
2Answer :
3The characteristics of Short Label instructions are:
·This type of instruction relative to the jump instruction address specifies the jump.
·The new value of an IP is specified with an 8-bit operand.
·From the location of the jump instruction the range in which this instruction can be used is
between -126 to +129 bytes.
1The characteristics of Near Label instructions are as follows:
·For Near label instruction the address of the jump is specified in relative terms to the jump
instruction itself.
·The new values of Ip is specified with a sixteen-bit operand.
·This type of instruction covers the complete range of the code segment currently used.
1Question 16. Mention The Characteristics Of The Cmp Instructions.?
2Answer :
3The various characteristics of the Compare (CMP) instruction are as follows:
·The CMP instruction can be used to compare two 8-bit or two 16-bit numbers.
·Whenever a compare operation is performed the result of such an operation reflects in one
of the six status flags CF, AF, OF, PF, SF and ZF.
·The CMP operation is also known as the subtraction method as it uses two`s complement
for it.
·The result of a CMP operation is never saved but corresponding to the result of the
instruction the flag statuses may be changed or reset.
·The operands of CMP instruction may reside in the memory or can be a component of an
instruction.
1Question 17. Mention The Different Types Of Instructions Responsible For Data Transfer
Instructions.?
2Answer :
3The following are the different types of instructions:
·Move byte or word instructions: they are used to perform primarily the move function on
words / bytes
·Exchange byte or word instructions: as their name suggests they are used to perform
exchange operations
·Translate byte instructions: used for transfer purposes.
·Load effective address instructions: used to calculate the effective address and load it to
memory.
·Load data segment instructions: used for loading purposes.
·Load extra segment instructions: used for special instructions such as span etc.
1Question 18. Briefly Explain The Logical Address, Base Segment Address And Physical Address.?
2Answer :
·Logical address is contained in the 16-bit IP, BP, SP, BX, SI or DI. It is also known as the offset
address or the effective address.
·The base segment address is contained in one of the 16bit contents of the segment registers
CS, DS, ES, SS.
·The physical address or the real address is formed by combining the offset and base
segment addresses. This address is 20bit and is primarily used for the accessing of the
memory.
1Question 19. Mention Briefly The Advantages Of Memory Segmentation In 8086?
2Answer :
3Some of the advantages of memory segmentation in the 8086 are as follows:
·With the help of memory segmentation a user is able to work with registers having only 16-
bits. 
·By memory segmentation the various portions of a program can be of more than 68kb.
·The data and the users code can be stored separately allowing for more flexibility.
·Also due to segmentation the logical address range is from 0000H to FFFFH the code can be
loaded at any location in the memory.
1Question 20. Explain Briefly How The Register In The 8086 Are Grouped Together?
2Answer :
3The 8086 in total consists of 14 16 bit registers. They are grouped together in the following way:
·All the registers are divided into the following groups: Data, Pointers and Index group,
segment group and status and control flag group.
·The accumulator AX, base BX, count CX and data DX account for the data registers.
·The stack pointer SP, base pointer BP, source index SI, Destination index DI and the
Instruction painter IP are the pointer registers.
·The Extra segment, code segment and stack segment are in the segment group of registers
·A single 16 bit flag register is present in the Control flag group.
1Question 21. What Are The Conditions Under Which The Eu Enter Into The Wait Mode?
2Answer :
3The EU goes into the WAIT mode in the following three conditions:
·If an instruction requires an access to a memory location which is not present in the queue
the EU enters into the WAIT state.
·The EU enters into the WAIT mode when a JUMP instruction is executed. In such cases the
existing queue contents are removed the EU waits for more instructions from the new
address in the memory.
·Certain instructions can take quite some time to execute in such cases the EU again goes
into the WAIT state. For cases such as these the BIU waits till the EU is able to extract some
bytes from the queue.
1Question 22. Which Technology Is Used In Bluetooth For Avoiding Interference?
2Answer :
3Frequency hopping is the technology used in Bluetooth.

4Question 23. Which Microprocessor Accepts The Program Written For 8086 Without Any
Changes?
5Answer :
68088 is that processor.

7Question 24. What Does Eu Do?


8Answer :
9Basically,8086 is divided into two part. 1.BIU. 2.EU Execution Unit(EU)Fetch the intruction from
Queue(memory(6 byte) in BIU.) and execute it.

10Question 25. Which Flags Can Be Set Or Reset By The Programmer And Also Used To Control
The Operation Of The Processor?
11Answer :
·Trace Flag,
·Interrupt Flag,
·Direction Flag.
1Question 26. Which Segment Is Used To Store Interrupt And Subroutine Return Address
Registers?
2Answer :
3Stack Segment in segment register is used to store interrupt and subroutine return address
registers.

4Question 27. What Is Meant By Cross-compiler?


5Answer :
6A program runs on one machine and executes on another is called as cross-compiler

7Programs which compile on One Machine and Execute on Another machine is called cross
compiler.

8Question 28. Give Examples For Micro Controller?


9Answer :
10Z80, Intel MSC51 &96, Motorola are the best examples of Microcontroller.

11The answer is:If we make the program in one operating system(os-xp) & if we want to
execute/runs on another operating sysrem(os-linux),than we can do it by cross-compiler.
12Question 29. Logic Calculations Are Done In Which Type Of Registers?
13Answer :
14Accumulator is the register in which Arithmetic and Logic calculations are done.

15Question 30. What Is The Position Of The Stack Pointer After The Pop Instruction?
16Answer :
17The address line is 02 greater than the earlier value.

18Question 31. What Is The Position Of The Stack Pointer After The Push Instruction?
19Answer :
20The address line is 02 less than the earlier value. Decrement by 2.

21Question 32. Which Is The Tool Used To Connect The User And The Computer?
22Answer :
23Interpreter is the tool used to connect the user and the tool.

24Question 33. What Is Internal Structure Of 8086?


25Answer :
268086 is having 2 different units i.e. BIU(Bus Interface Unit) and EU(Execution Unit), these two
units work synchronously.

27Question 34. Where 8086 Mostly Used & Tell Application Of 8086?
28Answer :
298086 is used for general purpose like it is used in traffic signals for control purpose .It’s also used
for small applications like for calculator,etc

30scientific calculators & small arithmatic operations

31Question 35. Why Memory Width Is Not 16-bit? In Stead Of Having 8-bit (same As 8085)?
32Answer :
33memory size of 8086 is 1MB memory size of 8085 is 64KB 2 ^(adresslines)=size of memory
(bytes) so adress lines of 8086 are 20 and 8085 is 16

34Question 36. What Is The Difference Between 8085 And 8086 In Microprocessor?
35Answer :
368086 has a special concept called as memory segmentation.It allows parallel processing, while
8085 does not.

37Question 37. How Many Types Memory Mgt Can Divided?


38Answer :
39 memory is divided into two bank:

401:even bank
2:odd bank.

41Question 38. Give Example For Non-maskable Interrupts?


42Answer :
43Trap is known as Non-Maskable interrupts, which is used in emergency condition.

445MHZ
45Question 39. Give Examples For Maskable Interrupts?
46Answer :
47RST 7.5, RST6.5, RST5.5 are Maskable interrupts.

48Question 40. Which Interrupts Are Generally Used For Critical Events?
49Answer :
50Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off
etc.

51Question 41. What Is Non-maskable Interrupts?


52Answer :
53An interrupt which can be never be turned off (ie.disabled) is known as Non-Maskable interrupt.

54Question 42. What Are The Various Interrupts In 8086?


55Answer :
56Maskable interrupts, Non-Maskable interrupts.

57Question 43. What Are The Flags Used In 8086?


58Answer :
59In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt
flag, Direction flag, and Sign flag.

60basically there r two types of interrupti.e.internal and external interrupts.internal interrupts are
software inetrrupts which can maskable or nonmaskable where as external interrupts are due to
some hardware reset,and are non maskable.

61Question 44. Which Stack Is Used In 8086?


62Answer :
63FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is
retrieved first.

64Question 45. Explain What Is Sim And Rim Instructions?


65Answer :
66SIM 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.

You might also like