qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ABSOLUTE Clause
  Keywords Contents Index                                   Back
 
  ABSOLUTE <segment base> : <offset> │ <identifier>
 
  Description
 
    The ABSOLUTE clause indicates a variable with an absolute address.
    To declare a variable as ABSOLUTE, place ABSOLUTE and its
    associated address or identifier between a declared variable's
    type and the semicolon.
 
    There are two forms of the ABSOLUTE clause. The first form forces
    the compiler to place a variable at a memory location with a
    specified base and offset. For example,
 
       VAR
           a_variable : Byte ABSOLUTE 0000:$0100;
 
    forces a_variable to the memory location 0000:$0100. The second
    form forces the compiler to lay one variable over the memory
    location of another variable. For example,
 
       VAR
           first  : Byte;
           second : Byte ABSOLUTE first;
 
    forces second to start at the same address as first.