Write an assembly language program to convert an uppercase letter to a lowercase letter.



Experiment Name: Write an assembly language program to convert an uppercase letter to a lowercase letter.

Objective:
          (i) To know about several command in the Assembly language.
          (ii) Input a Character.
          (iii) Output a Character.

Source code:
.model small
.stack
.data
          Adb 0dh,0ah, “ENTER an INPUT...”, 0dh, 0ah, “$”
          Bdb0dh,0ah, “The OUTPUT is...”,0dh,0ah, “$”
.code
 main proc
          mov ax,@data
          mov ds,ax

          lea dx, A
          mov ah,09h
          int 21h

          mov ah,01h
          int 21h
          add al,20h
          mov bl,al

          lea dx,B
          mov ah,09h
          int 21h

          mov dl,bl
          mov ah,02h
          int 21h

          mov ah,4ch
          int 21h
main endp
end main

Input/output:
          C:\Users\CSE422>prb18
          ENTER an INPUT…
          A
          The OUTPUT is …

          a 

No comments

Dear Members, Thanks for Your Comments. We must be reply your comment answer as soon as possible. Please Stay with us.....

Theme images by ideabug. Powered by Blogger.