home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / nasm20b / nasm_src / fix.h < prev    next >
C/C++ Source or Header  |  1993-01-19  |  1KB  |  35 lines

  1. /* ---------------------------------------------------------------------- */
  2. /*                   Copyright (C) 1991 by Natürlich!                     */
  3. /*                      This file is copyrighted!                         */
  4. /*                Refer to the documentation for details.                 */
  5. /* ---------------------------------------------------------------------- */
  6. #ifndef _FIX_
  7. # define _FIX_
  8. # ifndef _STRUCTS_
  9. #  include "structs.h"
  10. # endif
  11.  
  12. #if VERSION
  13. #  define fix_up( ex, ip, type)                   \
  14. {                                                 \
  15.    extern seg huge *sp;                           \
  16.    fix huge        *q = fix_alloc();              \
  17.                                                   \
  18.    q->poof.block = sp;                            \
  19.    q->index      = calc_index();                  \
  20.    q->imm        = ip;                            \
  21.    ex->fix       = type;                          \
  22.    ex->zonk.fixp = q;                             \
  23. }
  24.  
  25. #  define fix_lup( ex, p)                         \
  26. {                                                 \
  27.    fix           *q = fix_alloc();                \
  28.                                                   \
  29.    q->poof.label = p;                             \
  30.    ex->fix       = FIX_LABEL;                     \
  31.    ex->zonk.fixp = q;                             \
  32. }
  33. # endif
  34. #endif
  35.