Introduction to Microprocessor
A microprocessor is an integrated circuit that performs all the functions of a central processing unit.
It is programmable, meaning it can execute different sets of instructions based on the program
loaded into memory.
It operates on binary data and performs operations such as arithmetic calculations, logical
decisions, and data transfer between memory and input/output devices.
The microprocessor works with the help of registers, control unit, and arithmetic logic unit. These
components together execute instructions step by step.
It is widely used in computers, embedded systems, and digital devices because of its flexibility and
efficiency.
8086 Microprocessor Architecture
The 8086 microprocessor is divided into two main units: the Bus Interface Unit (BIU) and the
Execution Unit (EU).
The BIU is responsible for fetching instructions from memory, reading and writing data, and
calculating physical addresses using segment registers.
The Execution Unit decodes and executes instructions. It contains ALU, registers, and flag register.
The separation of BIU and EU allows pipelining, improving the overall performance of the
processor.
Registers in 8086
Registers are small storage locations inside the processor used to store temporary data and
instructions.
General-purpose registers include AX, BX, CX, and DX. These are 16-bit registers and can also be
accessed as 8-bit registers.
Segment registers such as CS, DS, SS, and ES are used to hold memory segment addresses.
Pointer and index registers such as SP, BP, SI, and DI are used for addressing memory locations.
Flag Register
The flag register consists of status and control flags that indicate the result of operations.
Status flags include Carry, Zero, Sign, Parity, Auxiliary Carry, and Overflow.
Control flags include Direction, Interrupt, and Trap flags.
These flags are automatically updated after arithmetic or logical operations.
Instruction Set
Instruction set is the collection of all instructions that a processor can execute.
Each instruction consists of opcode and operands. Opcode specifies the operation, and operands
specify data.
Instructions are categorized into data transfer, arithmetic, logical, string, and control instructions.
Examples include MOV for data transfer and ADD for arithmetic operations.
Addressing Modes
Addressing modes specify how operands are accessed during instruction execution.
Immediate addressing mode uses constant data within the instruction.
Direct addressing mode uses a memory address directly specified in the instruction.
Register and indirect addressing modes use registers to access data.
Stack and Procedures
The stack is a special memory structure used for temporary storage.
It operates on Last-In-First-Out principle.
PUSH instruction stores data onto the stack and POP retrieves it.
It is also used in subroutine calls to store return addresses.
Arithmetic Instructions
Arithmetic instructions perform operations such as addition, subtraction, multiplication, and division.
ADD and SUB are commonly used for basic operations.
MUL and DIV handle multiplication and division operations respectively.
These instructions also affect flags like Carry and Zero.
Logical Instructions
Logical instructions perform bitwise operations such as AND, OR, XOR, and NOT.
These operations are used for masking and decision-making.
Shift and rotate instructions move bits left or right.
They are useful in data manipulation and optimization.
Control Transfer Instructions
Control transfer instructions change the sequence of execution.
JMP is used for unconditional jumps.
Conditional jumps like JZ and JNZ depend on flag conditions.
CALL and RET are used for subroutine handling.
Introduction to Microprocessor
A microprocessor is an integrated circuit that performs all the functions of a central processing unit.
It is programmable, meaning it can execute different sets of instructions based on the program
loaded into memory.
It operates on binary data and performs operations such as arithmetic calculations, logical
decisions, and data transfer between memory and input/output devices.
The microprocessor works with the help of registers, control unit, and arithmetic logic unit. These
components together execute instructions step by step.
It is widely used in computers, embedded systems, and digital devices because of its flexibility and
efficiency.
8086 Microprocessor Architecture
The 8086 microprocessor is divided into two main units: the Bus Interface Unit (BIU) and the
Execution Unit (EU).
The BIU is responsible for fetching instructions from memory, reading and writing data, and
calculating physical addresses using segment registers.
The Execution Unit decodes and executes instructions. It contains ALU, registers, and flag register.
The separation of BIU and EU allows pipelining, improving the overall performance of the
processor.
Registers in 8086
Registers are small storage locations inside the processor used to store temporary data and
instructions.
General-purpose registers include AX, BX, CX, and DX. These are 16-bit registers and can also be
accessed as 8-bit registers.
Segment registers such as CS, DS, SS, and ES are used to hold memory segment addresses.
Pointer and index registers such as SP, BP, SI, and DI are used for addressing memory locations.
Flag Register
The flag register consists of status and control flags that indicate the result of operations.
Status flags include Carry, Zero, Sign, Parity, Auxiliary Carry, and Overflow.
Control flags include Direction, Interrupt, and Trap flags.
These flags are automatically updated after arithmetic or logical operations.
Instruction Set
Instruction set is the collection of all instructions that a processor can execute.
Each instruction consists of opcode and operands. Opcode specifies the operation, and operands
specify data.
Instructions are categorized into data transfer, arithmetic, logical, string, and control instructions.
Examples include MOV for data transfer and ADD for arithmetic operations.
Addressing Modes
Addressing modes specify how operands are accessed during instruction execution.
Immediate addressing mode uses constant data within the instruction.
Direct addressing mode uses a memory address directly specified in the instruction.
Register and indirect addressing modes use registers to access data.
Stack and Procedures
The stack is a special memory structure used for temporary storage.
It operates on Last-In-First-Out principle.
PUSH instruction stores data onto the stack and POP retrieves it.
It is also used in subroutine calls to store return addresses.
Arithmetic Instructions
Arithmetic instructions perform operations such as addition, subtraction, multiplication, and division.
ADD and SUB are commonly used for basic operations.
MUL and DIV handle multiplication and division operations respectively.
These instructions also affect flags like Carry and Zero.
Logical Instructions
Logical instructions perform bitwise operations such as AND, OR, XOR, and NOT.
These operations are used for masking and decision-making.
Shift and rotate instructions move bits left or right.
They are useful in data manipulation and optimization.
Control Transfer Instructions
Control transfer instructions change the sequence of execution.
JMP is used for unconditional jumps.
Conditional jumps like JZ and JNZ depend on flag conditions.
CALL and RET are used for subroutine handling.
Introduction to Microprocessor
A microprocessor is an integrated circuit that performs all the functions of a central processing unit.
It is programmable, meaning it can execute different sets of instructions based on the program
loaded into memory.
It operates on binary data and performs operations such as arithmetic calculations, logical
decisions, and data transfer between memory and input/output devices.
The microprocessor works with the help of registers, control unit, and arithmetic logic unit. These
components together execute instructions step by step.
It is widely used in computers, embedded systems, and digital devices because of its flexibility and
efficiency.
8086 Microprocessor Architecture
The 8086 microprocessor is divided into two main units: the Bus Interface Unit (BIU) and the
Execution Unit (EU).
The BIU is responsible for fetching instructions from memory, reading and writing data, and
calculating physical addresses using segment registers.
The Execution Unit decodes and executes instructions. It contains ALU, registers, and flag register.
The separation of BIU and EU allows pipelining, improving the overall performance of the
processor.
Registers in 8086
Registers are small storage locations inside the processor used to store temporary data and
instructions.
General-purpose registers include AX, BX, CX, and DX. These are 16-bit registers and can also be
accessed as 8-bit registers.
Segment registers such as CS, DS, SS, and ES are used to hold memory segment addresses.
Pointer and index registers such as SP, BP, SI, and DI are used for addressing memory locations.
Flag Register
The flag register consists of status and control flags that indicate the result of operations.
Status flags include Carry, Zero, Sign, Parity, Auxiliary Carry, and Overflow.
Control flags include Direction, Interrupt, and Trap flags.
These flags are automatically updated after arithmetic or logical operations.
Instruction Set
Instruction set is the collection of all instructions that a processor can execute.
Each instruction consists of opcode and operands. Opcode specifies the operation, and operands
specify data.
Instructions are categorized into data transfer, arithmetic, logical, string, and control instructions.
Examples include MOV for data transfer and ADD for arithmetic operations.
Addressing Modes
Addressing modes specify how operands are accessed during instruction execution.
Immediate addressing mode uses constant data within the instruction.
Direct addressing mode uses a memory address directly specified in the instruction.
Register and indirect addressing modes use registers to access data.
Stack and Procedures
The stack is a special memory structure used for temporary storage.
It operates on Last-In-First-Out principle.
PUSH instruction stores data onto the stack and POP retrieves it.
It is also used in subroutine calls to store return addresses.
Arithmetic Instructions
Arithmetic instructions perform operations such as addition, subtraction, multiplication, and division.
ADD and SUB are commonly used for basic operations.
MUL and DIV handle multiplication and division operations respectively.
These instructions also affect flags like Carry and Zero.
Logical Instructions
Logical instructions perform bitwise operations such as AND, OR, XOR, and NOT.
These operations are used for masking and decision-making.
Shift and rotate instructions move bits left or right.
They are useful in data manipulation and optimization.
Control Transfer Instructions
Control transfer instructions change the sequence of execution.
JMP is used for unconditional jumps.
Conditional jumps like JZ and JNZ depend on flag conditions.
CALL and RET are used for subroutine handling.