home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 199.lha / GimmeLib / minterm.h < prev    next >
C/C++ Source or Header  |  1988-12-27  |  814b  |  24 lines

  1. #ifndef GIMMELIB_MINTERM_H
  2. #define GIMMELIB_MINTERM_H
  3.  
  4. #define GIM_MINTERM_COPY    0x0c0    /* copy source; ignore dest */
  5. #define GIM_MINTERM_DEST    0x0a0    /* keep dest as is */
  6. #define GIM_MINTERM_CLEAR    0x000    /* clear dest block */
  7. #define GIM_MINTERM_FILL    0x0f0    /* fill dest block */
  8. #define GIM_MINTERM_OR        0x0e0    /* mix source and dest */
  9. #define GIM_MINTERM_MIX     GIM_MINTERM_OR
  10. #define GIM_MINTERM_UNMIX    0x020    /* remove source pattern from dest */
  11. #define GIM_MINTERM_XOR     0x060    /* xor source and dest */
  12. #define GIM_MINTERM_INV_SRC    0x030    /* invert source */
  13. #define GIM_MINTERM_INV_DEST    0x030    /* invert dest */
  14.  
  15. /*  4 important bits in minterm are as follows:
  16.  *    7  6  5  4
  17.  *    |  |  |  -> ~src & ~dest
  18.  *    |  |  ----> ~src &  dest
  19.  *    |  ------->  src & ~dest
  20.  *    ---------->  src &  dest
  21. */
  22.  
  23. #endif !GIMMELIB_MINTERM_H
  24.