Memory Segment - Segment Selector

Cpu Memory Management Segmented Model

About

A segment selector is the unique identifier of a segment and is used in the first part of logical address. See logical address syntax

It is a special pointer that identifies a segment in memory.

Its value can be found in a segment register.

Management

Creation

When writing application code, programmers generally create segment selectors with assembler directives and symbols. The assembler and other tools then create the actual segment selector values associated with these directives and symbols. If writing system code, programmers may need to create segment selectors directly.

Value

The value of a segment selector is hold in a segment register.

To access a particular segment in memory, the segment selector for that segment must be present in the appropriate segment register.

Default

When using a segmented memory model, some instructions assume that pointers in certain registers are relative to specific segments.

For instance, some instructions assume that a pointer in the EBX register points to a memory location in the DS segment.

Documentation / Reference





Discover More
Cpu Memory Management Segmented Model
Code Segment (CS)

The code segment is a segment that stores the code data type of a program. Ie it stores the instructions being executed. The next instruction to be executed in the code segment is located by the...
Card Puncher Data Processing
Instruction - Fetch

Fetch is a step in the the cycle of an instruction. The processor fetches instructions from the code segment, using a logical address that consists of: the segment selector in the CS register ...
Cpu Memory Management Segmented Model
Memory - Segment

A memory segment is the division structure of the segmented memory model. The physical address spec (physical memory) of the primary memory is divide by segment. See virtual memoryvirtual segment ...
Cpu Memory Management Segmented Model
Memory Segment - Data Segment (DS) - (ES, FS, GS)

The data segment are a segments that stores the data bit type. The availability of four data segments permits efficient and secure access to different types of data structures. For example, four...
Logical Address Segment
Memory Segment - Logical Address (pointers)

To address a byte in a segmented model, a program uses an address called a logical address Logical addresses are often referred to as pointers. where: Segment-register is a segment selector that...
Segment Register Init Flat Memory Model
Memory Segment - Segment Register

The segment registers (CS, DS, SS, ES, FS, and GS) hold 16-bit segment selectors To access a particular segment in memory, the segment selector for that segment must be present in the appropriate segment...
Cpu Memory Management Segmented Model
Memory Segment - Stack Segment (SS)

The Stack Segment is a segment that holds a stack. It's a stack implementation of memory locations. As the stack is a segment, it is a contiguous array of memory locations. When using: the...



Share this page:
Follow us:
Task Runner