Mic Question Paper P.A Test 2 Solution
Mic Question Paper P.A Test 2 Solution
TEST 2
SOLUTION
Q. 1)
A) Identify the addressing modes in following instruction.
a) MOV DS, AX b) MOV AX, [4172H]
a) MOV DS, AX: Register Addressing Mode
b) MOV AX, [4172H]: Direct Addressing Mode
C) Define flowchart?
The flowchart is a graphically representation of the program
operation or task.
The specific operation or task is represented by graphical
symbol such as circle, rectangle, diagonal, square and parallelogram,
etc. given below:
Page 1|5
D) If CS = 3000 and IP = 0123 then calculate the physical address.
30000H
+
00123H
=30123H
∴Physical address = 30123H
Page 2|5
Q.2)
A) Explain any TWO addressing modes of 8086.
Page 3|5
B) Explain Status flag register of 8086.
The 8086 microprocessor has a 16-bit flag register, also called the
status register. It's a collection of flags that reflect the outcome of the
latest arithmetic or logical operation.
Following are the status flag registers:
1. Carry flag (CF)
2. Auxiliary Carry flag (AF)
3. Parity Flag (PF)
4. Zero Flag (ZF)
5. Sign Flag (SF)
6. Overflow flag (OF)
Page 4|5
D) Explain DAA instruction with example.
The DAA (Decimal Adjust After Addition) instruction in the 8086
microprocessor is used for correcting binary-coded decimal (BCD) results
after addition operations.
• Packed BCD: Numbers are stored in groups of 4 bits, with each
group representing a single decimal digit (0-9).
• Regular Addition: The 8086 performs addition as binary operations.
• DAA Correction: After addition, DAA adjusts the result in the
accumulator (AL register) to ensure it represents a valid BCD
number. It checks for specific conditions (carry and lower nibble
value) and adds 6 or 0x60 to correct the result if necessary.
Page 5|5