next up previous contents index
Next: Dec Up: Functions and Procedures Previous: Cos

CSeg

   

Declaration:

Function CSeg : Word;

Description:

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

Errors:

None.

See also:

DSeg, Seg, Ofs, Ptr

Example
Program Example13;

{ Program to demonstrate the CSeg function. }

var W : word;

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



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998