Showing posts with label input. Show all posts
Showing posts with label input. Show all posts

Lower-case to Upper-case in Assembly Language Program

Program to convert lower-case to upper-case in Assembly Language.



TITLE Write Assembly program to Input Lower Case letter from user and display it’s upper case. (Subtract 32 in ASCII)

.model small
.stack

.code

;Input character
mov ah,07h;
int 21h;

;Capitalize
sub al,32

;print character
mov ah,02h;
mov dl,al;
int 21h;

;Give control back to OS
mov ah,4ch
int 21h

end


You might be interested in

Upper-Case to Lower-Case in Assembly Language Program

Input character in Assembly Language


TITLE Program to Input character in Assembly Language
.model small
.stack

.code
mov ah,01h;
int 21h;

mov ah,4ch;
int 21h;
end