Table of Contents

About

The code segment is a segment that stores the code data type of a program. Ie it stores the instructions being executed.

Next Instruction

The next instruction to be executed in the code segment is located by the following logical address:

CS:EIP

where:

More Instruction - Cycle.

Management

Segment Selector

The segment selector that locate this segment is the CS segment register.

Register

The CS register contains the segment selector for the code segment.

The CS register cannot be loaded explicitly by an application program. Instead, it is loaded implicitly by instructions or internal processor operations that change program control (such as procedure calls, interrupt handling, or task switching).