f Unit - III (3.3)
f Unit - III (3.3)
2. Parity flag(PF):
This flag is set to 1 if the lower byte of the result contains
even numbers of 1s.
4. Zero Flag(ZF):
This flag is set, if the result of the computation or comparison
performed by the previous instruction is zero.
5. Sign Flag(SF):
This flag is set, when the result of any computation is
negative.
6. Trap Flag(TF):
If TF=1, the CPU automatically generates an internal
interrupt after each instruction. This flag is used for debugging
of program.
7. Interrupt Flag(IF):
If this flag is set, the maskable interrupt INTR of 8086 is
enabled and if it is zero ,the interrupt is disabled.
1. SI (Source Index):
Typically used as a pointer to source data in memory operations,
particularly in string operations. It can be used with the DS (Data Segment)
register by default.
Index Register
2. DI (Destination Index):
Often used as a pointer to destination data in memory operations,
especially in string operations. It usually works with the ES (Extra
Segment) register.
• Auto-Increment/Decrement:
In certain string operations, the SI and DI registers can
automatically increment or decrement, streamlining operations like
copying or comparing strings
ALU - Arithmetic Logic Unit
The ALU (Arithmetic Logic Unit) is a critical component of the 8086
microprocessor responsible for performing all arithmetic and logical
operations on 8 bit as well as 16 bit data.
• Functions:
Arithmetic Operations: Addition, subtraction, multiplication, division.
Logical Operations: AND, OR, NOT, XOR.