Advertisement
Pulok_Biswas

Lower case to Upper case in assembly

Dec 13th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. .model small
  2. .stack 100h
  3. .data
  4. msg db "Enter Lower Letter : $"
  5. msg2 db 10,13,"Upper Letter: $"
  6. .code
  7. main proc
  8. mov ax,@data
  9. mov ds,ax
  10.  
  11. mov ah,9
  12. lea dx,msg
  13. int 21h
  14.  
  15. mov ah,1
  16. int 21h
  17. mov bl,al
  18.  
  19. mov ah,9
  20. lea dx,msg2
  21. int 21h
  22.  
  23. mov ah,2
  24. sub bl,32
  25. mov dl,bl
  26. int 21h
  27.  
  28. mov ah,4ch
  29. int 21h
  30. main endp
  31. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement