Sign in Join
FPDoc Onlineexperiment

DSeg function

In unit System

Return data segment.

Declaration

pascal
function DSeg: Word

Description

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

Errors

None.

See also

Example: ex17

pascal
Program Example17;

{ Program to demonstrate the DSeg function. }

Var
  W : Word;

begin
  W:=DSeg; {W:=0, This function is provided for compatibility,
                  FPC is a 32 bit compiler.}
end.

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