SHARE
TWEET

Uppercase to lowercase

Tariqul_Islam Oct 23rd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .model small
  2. .data
  3.  
  4. msg1 db 'Enter a letter: $'
  5. msg2 db 'Letter in lowercase: $'
  6.  
  7.  
  8. A db ?
  9.  
  10.  
  11. .code
  12. main proc
  13.     mov ax, @data
  14.     mov ds, ax
  15.    
  16.     lea dx,msg1
  17.     mov ah, 9
  18.     int 21h
  19.    
  20.     mov ah,1
  21.     int 21h
  22.    
  23.     mov A, al
  24.     int 21h
  25.    
  26.     mov ah, 2
  27.     mov dl, 0ah ;new line
  28.     int 21h
  29.     mov dl, 0dh ;remove space
  30.     int 21h
  31.    
  32.    
  33.     add A, 32
  34.     int 21h
  35.    
  36.    
  37.     mov ah, 9
  38.     lea dx,msg2    
  39.     int 21h
  40.    
  41.     mov ah, 2
  42.     mov dl,A
  43.     int 21h
  44.    
  45.          main endp
  46. end main
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top