Sign in Join
FPDoc Onlineexperiment

CSeg function

In unit System

Return code segment.

Declaration

pascal
function CSeg: Word

Description

CSeg returns the Code segment register. In Free Pascal, it returns always a zero, since Free Pascal is a 32/64 bit compiler.

Errors

None.

See also

Example: ex13

pascal
Program Example13;

{ Program to demonstrate the CSeg function. }

var W : word;

begin
  W:=CSeg; {W:=0, provided for compatibility,
                  FPC is 32 bit.}
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.