Microprocessors Lecture 2
Microprocessors Lecture 2
the memory.
• Its 20-bit address bus can address 1MB of memory, it segments
memory.
The internal architecture of Intel 8086 is divided into 2 units: The
10H + IP.
Example:
CS = 4321H IP = 1000H
then CS X 10H = 43210H + offset = 44210H
here, offset = Instruction Pointer (IP)
• Fetching the next instruction (by BIU from CS) while executing the
• Stack Pointer:
Points to Stack top. Stack is in Stack Segment, used during
instructions like PUSH, POP, CALL, RET etc.
• Base Pointer:
BP can hold the offset addresses of any location in the stack
segment. It is used to access random locations of the stack.
• Source Index:
It holds offset address in Data Segment during string
operations.
• Destination Index:
It holds offset address in Extra Segment during string
operations.
Instruction Register and Instruction Decoder:
The EU fetches an opcode from the queue into the
instruction register. The instruction decoder decodes it and
sends the information to the control circuit for execution.
Registers Cont’d:
microprocessor.
6 Status flags:
1. Carry flag(CF)
2. Parity flag(PF)
4. Zero flag(Z)
5. Sign flag(S)
3 Control flags:
1. Trap flag(TF)
2. Interrupt flag(IF)
3. Direction flag(DF)
These flags can be set or reset using control instructions like CLC,