home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / PJ_9_6.ZIP / ALIB.ZIP / ISCNTRL.ASM < prev    next >
Encoding:
Assembly Source File  |  1991-08-22  |  247 b   |  22 lines

  1.     include    asm.inc
  2.  
  3.     public    iscntrl
  4.  
  5.     .code
  6.  
  7. ;;    iscntrl
  8. ;
  9. ;    entry    AL    character
  10. ;    exit    Zf    if control character (0x7F or 0x00..0x1F)
  11. ;
  12. iscntrl proc
  13.     cmp    al,7Fh
  14.     je    isc1
  15.     cmp    al,1Fh
  16.     ja    isc1
  17.     cmp    al,al
  18. isc1:    ret
  19. iscntrl endp
  20.  
  21.     end
  22.