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> ptr assign a value to a pointer pp 207</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PTR                     Assign a Value to a Pointer                  pp 207

 Syntax:  Ptr (Cseg,$80) ;

 Type:    Pointer

 Form:    Function

 Purpose: Assigns a 32 bit segment:offset to a pointer variable.


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


 Usage:
       VAR
          Pointer : ^Integer           ;
          NumVar  : Integer            ;

       BEGIN
          Pointer := Ptr (Cseg,$0080)  ;  { Set pointer to hex Seg:Ofs   }
          Pointer := Ptr ($0000,$0080) ;  { Set pointer to hex Seg:Ofs   }
          Pointer := Ptr (NumVar,0)    ;  { Set NumVar Seg:Ofs in Pointer}
       END.

See Also: Absolute Addr Cseg Dseg Pointer

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