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

  1.     page    66,132
  2. ;******************************** MKEY06.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. TO_LOWER - converts ascii character lower case
  15. ;
  16. ; inputs:    AX = keycode returned by KEY_READ or AH=0, AL=ascii
  17. ; output:    AL = lower case ascii
  18. ;* * * * * * * * * * * * * *
  19. 
  20.     PUBLIC    TO_LOWER
  21. TO_LOWER        PROC    FAR
  22.     or        ah,ah
  23.     JNZ     tol_exit
  24.     CMP     AL,41h    ; 'A'
  25.     JB      tol_exit
  26.     CMP     AL,5Ah    ; 'Z'
  27.     JA      tol_exit
  28.     OR      AL,20h    ; ' '
  29. tol_exit:
  30.     RETF
  31. TO_LOWER ENDP
  32.  
  33. LIBSEG    ENDS
  34.     end
  35.