home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cug292wk.zip / ASCIS.MOD next >
Text File  |  1993-01-22  |  1KB  |  30 lines

  1. To add the assember directive .ascis, which sets the high order bit
  2. of the last character in a string, to any asxxxx assembler:
  3.  
  4. Add the following line to asm.h
  5.  
  6. #define    S_ASCIS    26        /* .ascis */
  7.  
  8.  
  9. Add the following line to all ___pst.c files
  10.  
  11.     NULL,    ".ascis",    S_ASCIS,    0,    0,
  12.  
  13.  
  14.  
  15. Add the following code to asmain.c
  16.  
  17.     case S_ASCIS:
  18.         if ((d = getnb()) == '\0')
  19.             qerr();
  20.         c = getmap(d);
  21.         while (c >= 0) {
  22.             if ((n = getmap(d)) >= 0) {
  23.                 outab(c);
  24.             } else {
  25.                 outab(c ! 0x80);
  26.             }
  27.             c = n;
  28.         }
  29.         break;