Microp
Microp
Here are the remaining 40 viva questions and answers from Chapter 2: The
Microprocessor and Its Architecture of the Intel Microprocessor book.
○ Code Segment (CS), Data Segment (DS), Stack Segment (SS), Extra
Segment (ES).
19. What is the significance of the CS register?
○ Stack memory stores local variables and function calls, while heap
memory is used for dynamic memory allocation.
29. What is the purpose of the FLAGS register in the 8086?
○ Status Flags (e.g., Zero Flag, Carry Flag), Control Flags (e.g.,
Interrupt Flag), and System Flags.
31. What is the Zero Flag (ZF)?
○ It has 14 registers: AX, BX, CX, DX, SP, BP, SI, DI, CS, DS, SS, ES, IP,
and FLAGS.
40. What is the purpose of the Base Pointer (BP)?
○ The 8086 has a 16-bit data bus, while the 8088 has an 8-bit data
bus.
50. Why is the 8086 called a 16-bit processor?
I'll now provide 50 viva questions and answers for each of Chapters 3 to 9
from the Intel Microprocessor book in batches. Here's the next set:
○ MOV copies data, while XCHG swaps the values of two operands.
4. What is the purpose of the PUSH instruction?
○ It stores data onto the stack and decrements the stack pointer
(SP).
5. What is the purpose of the POP instruction?
○ ADD, SUB, MUL, DIV, INC, DEC, ADC, SBB, NEG, CMP.
2. What is the function of the ADD instruction?
○ Carry (CF), Zero (ZF), Sign (SF), Overflow (OF), Auxiliary Carry
(AF), and Parity (PF).
4. What is the purpose of the ADC (Add with Carry) instruction?
Logical Instructions
25. What are the main logical instructions in x86 assembly?
● AND, OR, XOR, NOT, and TEST.
26. What does the AND instruction do?
● It performs a bitwise AND operation between two operands.
27. Which flags are affected by the AND instruction?
● Zero (ZF), Sign (SF), and Parity (PF), but Carry (CF) and Overflow (OF)
are cleared.
28. What does the OR instruction do?
● It performs a bitwise OR operation between two operands.
29. What does the XOR instruction do?
● It performs a bitwise exclusive OR operation.
30. What is the special use of XOR for clearing registers?
● XOR AX, AX sets AX to zero more efficiently than MOV AX, 0.
31. What is the function of the NOT instruction?
● It performs a bitwise complement (1’s complement) of an operand.
32. What does the TEST instruction do?
● It performs a bitwise AND operation but does not store the result, only
sets flags.
33. How is TEST different from AND?
● TEST does not change the destination operand, while AND stores the
result.
● MOV loads the value from memory, while LEA loads the address of the
operand.
○ The 8086 has a 16-bit data bus, while the 8088 has an 8-bit data
bus.
2. What is the purpose of the clock generator (8284A) in the 8086?
○ 5 MHz to 10 MHz.
5. What is the function of the ready signal in the 8086?
○ The 8-bit ISA bus transfers data at 4.77 MHz, while the 16-bit
version operates at 8 MHz.
4. Why was the ISA bus eventually replaced?