Advertisement
sharifuddin

upper case to lower case

Apr 6th, 2017
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ; You may customize this and other start-up templates;
  3. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  4.  
  5. org 100h
  6.  
  7. .data
  8.  
  9. MSG1 db "Enter a lowercase character = $"
  10. MSG2 db 0dh,0ah, "In upper case it is = "
  11. Char db ?, "$"
  12.  
  13. ; add your code here
  14.  
  15. .code
  16.  
  17. mov ax, @data
  18. mov ds,ax
  19. lea dx, MSG1
  20.  
  21. mov ah,9
  22. int 21h
  23.  
  24. mov ah,1
  25. int 21h
  26.  
  27. sub al,20h
  28. mov Char, al
  29.  
  30. lea dx, MSG2
  31.  
  32. mov ah,9
  33. int 21h
  34.  
  35. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement