home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 January (DVD) / VPR980100.ISO / OLS / DOS / MILD7130 / MILD7130.LZH / SOURCE.LZH / MACROS.INC next >
Text File  |  1993-11-11  |  872b  |  63 lines

  1. ;==============
  2. ; Define Macro
  3. ;============== by Altair☆
  4.     irp    op,<push,pop>
  5. op&s    macro    regs
  6.     irp    reg,regs
  7.  ifidni <reg>,<f>
  8.     op&f
  9.  else
  10.   ifidni <reg>,<a>
  11.     op&a
  12.   else
  13.     op    reg
  14.   endif
  15.  endif
  16.     endm
  17.     endm
  18.     endm
  19.  
  20. if_    macro    x,cond,y,where
  21.     cmp    x,y
  22.     j&cond    where
  23.     endm
  24.  
  25.     irp    reg,<ax,bx,dx,si,di,bp,al,bl,cl,dl,dh,ah,bh,ch,dh>
  26. j®&z macro    where
  27.     or    reg,reg
  28.     jz    where
  29.     endm
  30.     endm
  31.  
  32.     irp    reg,<ax,bx,cx,dx,si,di,bp,al,bl,cl,dl,dh,ah,bh,ch,dh>
  33. j®&nz macro    where
  34.     or    reg,reg
  35.     jnz    where
  36.     endm
  37.     endm
  38.  
  39. testif    macro    x,y,cond,where
  40.     test    x,y
  41.     j&cond    where
  42.     endm
  43.  
  44. movp    macro    targ,source
  45.     push    source
  46.     pop    targ
  47.     endm
  48.  
  49. mov2    macro    targ,reg,source
  50.     mov    reg,source
  51.     mov    targ,reg
  52.     endm
  53.  
  54. movd    macro    mem32,sreg,reg16
  55.     mov    word ptr mem32,reg16
  56.     mov    word ptr mem32+2,sreg
  57.     endm
  58.  
  59. callif    macro    proc,cond,where
  60.     call    proc
  61.     j&cond    where
  62.     endm
  63.