Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> seg get segment of variable pp 204</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SEG                       Get Segment of Variable                    pp 204

 Syntax:  Seg (VarName) ;

 Type:    Integer

 Form:    Function

 Purpose: Returns the segment of VarName in its memory segment.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          IntVar  : Integer        ;
          Segment : Integer        ;
          VarName : Integer        ;
          Pointer : ^Integer       ;

       BEGIN
          IntVar  := Seg (VarName)  ;  { Get segment of VarName }
          Segment := Seg (Pointer)  ;  { Get segment of Pointer }
       END.

See Also: Absolute Addr Cseg Dseg Ofs Ptr

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson