Podcast
Questions and Answers
What is the maximum size of a segment in Intel 8086?
What is the maximum size of a segment in Intel 8086?
What is the purpose of the segment register in Intel 8086?
What is the purpose of the segment register in Intel 8086?
Which of the following is NOT an advantage of memory segmentation?
Which of the following is NOT an advantage of memory segmentation?
What is the maximum size of a memory space that can be addressed by the Intel 8086 processor?
What is the maximum size of a memory space that can be addressed by the Intel 8086 processor?
Signup and view all the answers
What is the difference between Linear Addressing and Segmented Addressing?
What is the difference between Linear Addressing and Segmented Addressing?
Signup and view all the answers
Which of the following register pairs is used to determine the 20-bit physical address for the destination in string instructions?
Which of the following register pairs is used to determine the 20-bit physical address for the destination in string instructions?
Signup and view all the answers
What is the purpose of the Stack Pointer (SP) register?
What is the purpose of the Stack Pointer (SP) register?
Signup and view all the answers
If the Code Segment Register (CS) holds the value 1000H and the Instruction Pointer (IP) holds the value 2000H, what is the physical address of the next instruction to be executed?
If the Code Segment Register (CS) holds the value 1000H and the Instruction Pointer (IP) holds the value 2000H, what is the physical address of the next instruction to be executed?
Signup and view all the answers
Which set of registers are accessible to the programmer in the 8086 microprocessor?
Which set of registers are accessible to the programmer in the 8086 microprocessor?
Signup and view all the answers
How many bits wide are the registers in the 8086 microprocessor?
How many bits wide are the registers in the 8086 microprocessor?
Signup and view all the answers
What does the term '16-bit' refer to in the context of the 8086 microprocessor?
What does the term '16-bit' refer to in the context of the 8086 microprocessor?
Signup and view all the answers
Which of the following is NOT a stated function of the general purpose registers in the 8086?
Which of the following is NOT a stated function of the general purpose registers in the 8086?
Signup and view all the answers
What is the main function of the AX register?
What is the main function of the AX register?
Signup and view all the answers
How many memory locations can the 8086 microprocessor directly access?
How many memory locations can the 8086 microprocessor directly access?
Signup and view all the answers
What is the size of a segment in the 8086 memory segmentation model?
What is the size of a segment in the 8086 memory segmentation model?
Signup and view all the answers
What is the purpose of the multiplexed address and data bus in the 8086?
What is the purpose of the multiplexed address and data bus in the 8086?
Signup and view all the answers
What is the purpose of the Code Segment (CS) register?
What is the purpose of the Code Segment (CS) register?
Signup and view all the answers
Which of the following is a correct description of the 8086 clock requirement?
Which of the following is a correct description of the 8086 clock requirement?
Signup and view all the answers
In the 8086, what is the role of the Bus Interface Unit (BIU)?
In the 8086, what is the role of the Bus Interface Unit (BIU)?
Signup and view all the answers
Which registers are used as memory pointers in the 8086?
Which registers are used as memory pointers in the 8086?
Signup and view all the answers
How many bits are the segment registers in the 8086?
How many bits are the segment registers in the 8086?
Signup and view all the answers
In which mode does the CPU itself issue control signals in the Intel 8086?
In which mode does the CPU itself issue control signals in the Intel 8086?
Signup and view all the answers
What is the primary function of the Execution Unit (EU) in the 8086 architecture?
What is the primary function of the Execution Unit (EU) in the 8086 architecture?
Signup and view all the answers
How does the 8086 handle the storage of a 16-bit word in memory?
How does the 8086 handle the storage of a 16-bit word in memory?
Signup and view all the answers
Which unit in the 8086 microprocessor is responsible for fetching instructions from memory?
Which unit in the 8086 microprocessor is responsible for fetching instructions from memory?
Signup and view all the answers
What is the primary function of the Execution Unit (EU) in the 8086 microprocessor?
What is the primary function of the Execution Unit (EU) in the 8086 microprocessor?
Signup and view all the answers
The 8086 microprocessor uses a technique called pipelining to improve performance. What does pipelining involve?
The 8086 microprocessor uses a technique called pipelining to improve performance. What does pipelining involve?
Signup and view all the answers
Which of the following is NOT a component of the Bus Interface Unit (BIU) in the 8086 microprocessor?
Which of the following is NOT a component of the Bus Interface Unit (BIU) in the 8086 microprocessor?
Signup and view all the answers
What is the width of the data bus and address bus in the 8086 microprocessor?
What is the width of the data bus and address bus in the 8086 microprocessor?
Signup and view all the answers
Where are instructions held before being executed by the EU, after being fetched from memory by the BIU?
Where are instructions held before being executed by the EU, after being fetched from memory by the BIU?
Signup and view all the answers
Which component within the Execution Unit (EU) translates the instruction fetched from memory into a series of actions for the EU to perform?
Which component within the Execution Unit (EU) translates the instruction fetched from memory into a series of actions for the EU to perform?
Signup and view all the answers
Besides general purpose registers, segment, pointer and index registers, which other register is part of the 8086 programmer's model?
Besides general purpose registers, segment, pointer and index registers, which other register is part of the 8086 programmer's model?
Signup and view all the answers
Which registers are used to generate the 20-bit physical address, in association with the code and stack segments?
Which registers are used to generate the 20-bit physical address, in association with the code and stack segments?
Signup and view all the answers
If the result of an ALU operation is zero, which flag will be set?
If the result of an ALU operation is zero, which flag will be set?
Signup and view all the answers
Which flag is specifically used for single-stepping a program during debugging?
Which flag is specifically used for single-stepping a program during debugging?
Signup and view all the answers
What does the Direction Flag (DF) control?
What does the Direction Flag (DF) control?
Signup and view all the answers
Under what condition is the Carry Flag (CF) set?
Under what condition is the Carry Flag (CF) set?
Signup and view all the answers
What is the purpose of the Auxiliary Flag (AF)?
What is the purpose of the Auxiliary Flag (AF)?
Signup and view all the answers
When is the Overflow Flag (OF) set during an addition operation?
When is the Overflow Flag (OF) set during an addition operation?
Signup and view all the answers
What happens when the Interrupt Flag (IF) is set?
What happens when the Interrupt Flag (IF) is set?
Signup and view all the answers
What is the range of physical addresses that the 8086 CPU can access?
What is the range of physical addresses that the 8086 CPU can access?
Signup and view all the answers
Which type of address consists of a segment value and an offset address?
Which type of address consists of a segment value and an offset address?
Signup and view all the answers
Given CS = 3499H and IP = 2500H, what is the logical address?
Given CS = 3499H and IP = 2500H, what is the logical address?
Signup and view all the answers
What is the maximum range for an offset address in 8086?
What is the maximum range for an offset address in 8086?
Signup and view all the answers
In the context of memory segmentation, which segment is used for storing instruction codes?
In the context of memory segmentation, which segment is used for storing instruction codes?
Signup and view all the answers
What does the segment override prefix allow a programmer to do?
What does the segment override prefix allow a programmer to do?
Signup and view all the answers
What is the function of segment registers like CS, DS, and SS?
What is the function of segment registers like CS, DS, and SS?
Signup and view all the answers
If DS = 3499H and the offset = 3FB9H, what is the resulting physical address?
If DS = 3499H and the offset = 3FB9H, what is the resulting physical address?
Signup and view all the answers
Study Notes
Chapter Two: 8086 Microprocessor Architecture and Assembly Language
- The 8086 microprocessor is a 16-bit processor.
- 16-bit refers to the ALU, internal registers, and most instructions designed for 16-bit binary words.
- The 8086 has a 16-bit data bus for reading and writing data to memory/ports in 16 or 8-bit chunks.
- Its 20-bit address bus allows access to 1,048,576 (1MB) memory locations. Each location is a byte wide.
- 16-bit words are stored in consecutive memory locations.
- The 8086 can access 2^16 (~65,536) I/O ports.
- It has 14 16-bit registers.
Chapter Outline
- Features of the 8086
- Architecture of the 8086
- Register Organization
- Bus Operation
- Memory Segmentation
8086 Features
- Multiplexed address and data bus to reduce pins, but slower data transfer.
- Uses a single-phase clock with a 33% duty cycle for optimized internal timing. Clock rates include 5MHz for 8086, 8MHz for 8086-2, and 10MHz for 8086-1.
- Supports bit, byte, word, and block operations.
- Arithmetic and logic operations are possible on bits, bytes, words, and decimal numbers, including multiplication and division.
- Can operate in minimum or maximum mode. Minimum mode uses the CPU to control signals. Maximum uses external bus controller 8288.
- Has 6-byte instruction cache or queue.
- Supports multiprogramming.
8086 Architecture
- Organized as two separate processors: BIU (Bus Interface Unit) and EU (Execution Unit).
- BIU handles all external bus operations.
- EU fetches, decodes, and executes instructions.
- BIU contains instruction queue for faster program execution
- EU includes control circuitry, instruction decoder, and ALU.
Register Organization
- Powerful set of registers.
- Registers include: General-purpose registers, Segment registers, Pointers and index registers, and Flag register.
- Figure 2.4 shows the register organization.
- Programmer's model of the 8086 registers. All registers are 16-bits wide.
- General-purpose registers: AX, BX, CX, DX used for data, variables, and temporary results.
- General purpose registers can be used as counters, and for specific addressing modes.
- AX is both a 16-bit and 8-bit accumulator.
- BX is used to store offsets during addressing modes.
- CX is a default counter for loops or strings
Segment Registers
- The 8086 uses memory segmentation to access 1MB of memory using 16-bit registers
- The maximum segment size is 64 KB.
- Four 16-bit segment registers (CS, DS, SS, ES) select active segments at any given time.
- CS (Code Segment) : Holds starting address of code segment.
- DS (Data Segment): Data segment start address.
- SS (Stack Segment): Stack segment start address..
- ES (Extra Segment): Extra segment start address.
Pointers and Index Registers
- Used as memory pointers.
- 16-bit wide. (IP,BP,SP,SI,DI).
- Needed to generate 20-bit physical addresses
- IP: Instruction Pointer. Offset from code segment.
- BP: Base Pointer. Offset from stack segment, useful in addressing modes.
- SP: Stack Pointer. Offset from the stack segment.
- SI: Source Index. Used as offset in data segment, often for strings.
- DI: Destination Index. Also used for offset in data segment, often with strings
Flag Register
- Contains 9 flags (6 are key) indicating conditions after instruction execution or controlling operations.
- CF (Carry Flag): Overflowed bit after addition or borrow bit in subtraction.
- PF (Parity Flag): If result in byte operation or lower word byte has even number of 1s.
- AF (Auxiliary Carry Flag): Bit 3 overflow in BCD operations.
- ZF (Zero Flag): Result of operation is zero.
- SF (Sign Flag): If MSB of result is 1.
- OF (Overflow Flag): Result is out of range.
- TF (Trap Flag): For single stepping through a program.
- IF (Interrupt Flag): Enable interruptions.
- DF (Direction Flag): For string processing direction (high to low or low to high)
Memory Segmentation
- Memory is divided into segments (64KB) for addressing.
- Using segment registers, 20-bit physical addresses are generated from 16-bit logical addresses.
- Offset address is associated with the pointer register or index register for a specific memory location within a segment.
- Logical address = Segment : Offset
Generation of 20-Bit Addresses
- The 8086 uses segment registers and offset registers to generate 20-bit physical addresses.
- Offset registers include IP, SP, BP, SI, and DI. Instruction pointer (IP), holds the offset from the code segment. Stack pointer (SP) and Base pointer (BP) hold offsets relative to the stack segment. Source index (SI) and Destination Index (DI), hold offsets related to data segment.
Logical and Physical Addresses
- Logical address = Segment register: Offset address
- Physical address = (Segment value * 16)+ Offset value
Examples on Flags
- Example 2.1 shows flag register contents after an addition.
- Quiz 2 demonstrates flag register changes based on instruction series
Additional Topics
- Bus operation
- Memory Segmentation (default, alternate segments, and override prefixes)
Assignments
- Assignment 1 contains questions involving logical, physical addressing, and calculation within different segments.
Examples
- Examples on how to determine the physical address
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Test your knowledge on the Intel 8086 microprocessor with this quiz. Covering concepts like memory segmentation, addressing modes, and register functionalities, this quiz evaluates your understanding of the architecture and capabilities of the 8086. Perfect for students and enthusiasts eager to assess their grasp of microprocessor fundamentals.