Assembly language program to input small latter from user and convert it into capital latter

 Code

org 100h
.stack 100h
.data
input db "Please enter a small latter: $"
output db "Capital later of $"
output1 db " is : $"
.code
main proc
    mov ax,@data
    mov ds,ax
    mov dx,offset input
    mov ah,09
    int 21h
     mov ah,01
     int 21h
     mov cx,ax
     
     ;for new line
     mov dx,10
     mov ah,02
     int 21h
     mov dx,13
     mov ah,02
     int 21h
     
     mov dx,offset output
     mov ah,09
     int 21h
     mov dx,cx
     mov ah,02
     int 21h
     
     mov dx,offset output1
     mov ah,09
     int 21h
     sub cx,32
     mov dx,cx
     mov ah,02
     int 21h
     
     mov ah,4ch
     int 21h
    main endp
end main

Output



Comments

Popular posts from this blog

Assembly language program to input an integer from user and display whether the number is even or odd

Assembly language program to input string from user and display it

Assembly language program to input string from user and display its length