home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / ASM / ALIB30B / MKEY03.ASM < prev    next >
Assembly Source File  |  1994-10-15  |  879b  |  39 lines

  1.     page    66,132
  2. ;******************************** MKEY03.ASM *********************************
  3.  
  4. LIBSEG           segment byte public "LIB"
  5.         assume cs:LIBSEG , ds:nothing
  6.  
  7. ;----------------------------------------------------------------------------
  8. .xlist
  9.     include  mac.inc
  10.     include  common.inc
  11. .list
  12. comment 
  13. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(MOUSE/KEY)
  14. IS_LOWER - check if key returned by KEY_READ is lower case
  15. ;
  16. ; inputs:    AX = keycode returned by KEY_READ or AH=0, AL=ascii
  17. ; output:    if CF = 1, keycode is not a character from a-z
  18. ;* * * * * * * * * * * * * *
  19. 
  20.     PUBLIC    IS_LOWER
  21. IS_LOWER        PROC    FAR
  22.     OR      AH,AH
  23.     JNZ     isl_exit
  24.     CMP     AL,'a'
  25.     JB      isl_exit
  26.     CMP     AL,'z'
  27.     JA      isl_exit
  28.     CLC
  29.     RETF
  30. isl_exit:
  31.     STC
  32.     RETF
  33. IS_LOWER ENDP
  34.  
  35.  
  36. LIBSEG    ENDS
  37.     end
  38.