Farhana_Zaman

Untitled

May 12th, 2023
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. .model small
  2. .stack 100h
  3. .data
  4.  
  5. a db 'InputLowercase letter: $'
  6. b db 'Uppercase letter: $'
  7.  
  8. .code
  9.  
  10. main proc
  11.  
  12. mov ax,@data
  13. mov ds,ax
  14.  
  15. mov ah,9
  16. lea dx,a
  17. int 21h
  18.  
  19. mov ah,1
  20. int 21h
  21. mov bl,al
  22.  
  23. mov ah,2
  24. mov dl,10
  25. int 21h
  26. mov dl,13
  27. int 21h
  28.  
  29. mov ah,9
  30. lea dx,b
  31. int 21h
  32.  
  33. mov ah,2
  34. sub bl,32
  35. mov dl,bl
  36. int 21h
  37.  
  38. exit:
  39. mov ah,4ch
  40. int 21h
  41. main endp
  42. end main
Add Comment
Please, Sign In to add comment