8086 Questions and Answers 250507 192013
8086 Questions and Answers 250507 192013
1
13. What do you mean by pipelining in 8086?
Pipelining is the process of fetching, decoding, and executing instructions simulta-
neously using the BIU and EU.
19. What is the relation between 8086 processor frequency & crystal fre-
quency?
The processor frequency is one-third of the crystal frequency (e.g., a 15 MHz crystal
yields a 5 MHz processor).
2
28. What is the size of each segment?
Each segment is 64 KB.
31. What is the difference between min mode and max mode of 8086?
Min mode is for single-processor systems; Max mode supports multiprocessing with
external bus controllers.
3
42. What ’.model small’ means?
(Repeated) .MODEL SMALL specifies one code and one data segment, each up to
64 KB.
53. What is the difference between 08H and 01H functions of INT 21H?
01h reads a character with echo; 08h reads a character without echo.
54. Which is faster- Reading word size data whose starting address is at even
or at odd address of memory in 8086?
Even-addressed word data is faster due to single-cycle access; odd-addressed re-
quires two cycles.
4
57. Which are the base registers in 8086?
Base registers: BX, BP.
5
73. stack 100 means?
STACK 100 reserves 100h (256 bytes) for the stack segment.
80. While accepting no. from user why u need to subtract 30H from that?
To convert ASCII digits (30h–39h) to their binary value (0–9).
81. While displaying no. from user why u need to add 30H to that?
To convert binary digits (0–9) to ASCII (30h–39h) for display.
6
90. What is MUL BX and DIV BX? Where result goes?
MUL BX: AX × BX, result in DX:AX; DIV BX: DX:AX ÷ BX, quotient in AX,
remainder in DX.
94. Which are the pointers used in 8086 and their functions?
SP: Stack operations; BP: Base for stack addressing; IP: Next instruction address.
2 Programs
1. What do you mean by assembler?
(Repeated) An assembler translates assembly language into machine code.
7
6. What do you mean by emulator?
(Repeated) An emulator mimics one system’s behavior on another.
10. Explain the logic of finding out negative nos. from an array of signed
nos.
Loop through the array, check the sign bit (MSB); if 1, increment a counter or store
the number.
11. Explain the logic of code conversion (BCD to hex and hex to BCD)
program.
BCD to Hex: Divide by 10, multiply units by 1, tens by 10, add. Hex to BCD:
Divide by 10, store remainder (units), quotient (tens).
12. Explain the logic of multiplication (by successive addition and shift and
add method) program.
Successive addition: Add multiplicand repeatedly (multiplier times). Shift and add:
Shift multiplicand left, add based on multiplier bits.
13. Explain the logic of non overlap and overlap block transfer program.
Non-overlap: Copy block from source to destination (different memory). Overlap:
Handle copying when source/destination overlap, using temporary buffer or reverse
copy.
3 Interrupts
1. What do you mean by interrupt?
An interrupt is a signal that pauses the CPU to handle an event (hardware/software).
8
3. Mention the priority of interrupts in 8086.
Highest to lowest: NMI, INTR, INT n, Single-step, Divide error.
4 Interfacing
1. What are the types of interfacing?
Memory interfacing (connecting RAM/ROM) and I/O interfacing (connecting pe-
ripherals like keyboards, displays).