An Assembly Language program to convert a upercase character to lowercase

An Assembly Language program to read a upercase character from keyboard and print it's lowercase character on the screen.


♣ Try it out ::
.model small
.stack 100h 
.data

.code

main proc
    
    mov ax,@data
    mov ds,ax
    
    mov ah,1
    int 21h
    
    add al,32 
    
    mov bl,al
    
    mov ah,2
    mov dl,' '
    int 21h  
    
    mov ah,2
    mov dl,bl
    int 21h    
            
    mov ah,4ch
    int 21h
        
    main endp
end main

♣ Sample Input and Output ::
M m

Popular posts from this blog

C++ :: Topological Sort Algorithm (using DFS)

How to Hack Facebook Account

C++ :: Strongly Connected Components Algorithm (SCC)