Assembly Language Help (alang.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.
Loader-Resolved Offset
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   LROFFSET expression
 
  See also: OFFSET, Segment Override (:), SEG,
            MASM 5.1 Compatibility
 
  Description:
 
     Similar to OFFSET, but causes the offset to be resolved by the
     loader at run time. LROFFSET is usually applied to the offset of
     a function pointer. This run-time resolution allows Microsoft
     Windows to relocate code segments in real mode.
 
     The <expression> is any label, variable, or other direct memory
     operand.
 
  Example:
 
     INVOKE     CreateRoutine, LROFFSET MyFunc, 0
                                    -♦-