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> constptr console key pressed pointer pp 209</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CONSTPTR                Console Key Pressed Pointer                  pp 209

 Syntax:  ConStPtr ;

 Type:    Pointer

 Form:    Function

 Purpose: ConStPtr is a predefined variable pointing to the address of
          the ConSt function.


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


 Usage:
       TYPE
          PtrType = ^Real         ;  { Define a pointer type            }

       VAR
          AdrPtr  : PtrType       ;  { Define a pointer of type PtrType }
          Segment : Integer       ;  { Segment value                    }
          Offset  : Integer       ;  { Offset value                     }

       BEGIN
          AdrPtr^ := ConStPtr     ;  { Assign to our pointer            }
          Segment := Seg (AdrPtr) ;  { Get AuxInPtr segment             }
          Offset  := Ofs (AdrPtr) ;  { Get AuxInPtr offset              }
       END.

See Also: ConInPtr ConOutPtr

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