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> addr return segment:offset of variable pp 268</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ADDR                  Return SEGMENT:OFFSET of variable              pp 268

 Syntax:  Addr (VarName) ;

 Type:    Far pointer

 Form:    Function

 Purpose: For variables, Addr will return a 32 bit pointer.
          For records, specific fields may be selected and
          a 16 bit Integer pointer is returned.
          If VarName is an array, it may be subscripted.


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


 Usage:
       VAR
          Pointer := Addr (VarName)      ;
          IntVar  := Addr (Record.Field) ;

See Also: Absolute Pointer Ptr Record

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