home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / stdlib.zip / ADDCHAR.ASM next >
Assembly Source File  |  1990-07-21  |  477b  |  33 lines

  1. stdlib        segment    para public 'slcode'
  2.         assume    cs:stdlib
  3. ;
  4. ;
  5. ; AddChar-    Unions a character into a set.
  6. ;
  7. ; inputs:
  8. ;
  9. ;    ES:DI-  Points at the set (at its mask byte).
  10. ;    AL-    Character to union into the set.
  11. ;
  12. ;
  13. ;
  14.         public    sl_AddChar
  15. ;
  16. sl_AddChar    proc    far
  17.         push    ax
  18.         push    bx
  19. ;
  20.         mov    bl, al
  21.                 mov    bh, 0
  22.         mov    al, es:[di]        ;Get mask byte
  23.         or    es:8[di][bx], al    ;Add to set
  24. ;
  25.         pop    bx
  26.         pop    ax
  27.         ret
  28. sl_AddChar    endp
  29. ;
  30. ;
  31. stdlib        ends
  32.         end
  33.