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> absolute define variable at absolute address pp 203</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ABSOLUTE           Define Variable at Absolute Address               pp 203

 Syntax:  Absolute Segment : Offset

 Type:    Far Pointer

 Form:    Declaration

 Purpose: Declare a variable to reside in a specific memory location.

 Notes:   Standard identifiers Cseg and Dseg can be used to place
          variables at absolute addresses within the Code and Data
          segments.  More than one variable can be declared at any
          given address.


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



 Usage:
       VAR
          Com1       : Integer Absolute $0000:$0400               ;
          ScrnWidth  : Byte Absolute $0000:$0417                  ;
          CmdTail    : String [128] Absolute Cseg:$0080           ;
          CmdTailLen : Byte Absolute CmdTail                      ;
          Buffer     : Array [0..$3FFF] of Byte Absolute $B800:$0 ;

See Also: Addr Cseg Dseg Ofs Pointer Ptr Seg

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