Posts

Showing posts with the label Assembly Language

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

An Assembly Language program to convert a lowercase character to upercase

An Assembly Language program to read a lowercase character from keyboard and print it's upercase 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 sub 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

An Assembly Language program to print a string

An Assembly Language program to print a string "DaPrimitive Soource" on the screen. (USE: string output function) ♣ Try it out :: .model small .stack 100h .data msg db "DaPrimitive Soource",'$' .code main proc mov ax,@data mov ds,ax mov ah,9 mov dx, offset msg int 21h mov ah, 4ch int 21h main endp end main ♣ Sample Output :: DaPrimitive Soource

An Assembly Language program that will input from keyboard (without echo) & print it

An assembly language program that will read a character from keyboard (console input without echo function) and print it on the screen. (USE: character output function) ♣ Try it out :: .model small .stack 100h .code main proc mov ah, 8 int 21h mov ah, 2 mov dl, al int 21h mov ah, 4ch int 21h main endp end main ♣ Sample Input and Output :: M

An Assembly Language program that will input from keyboard (with echo) and print it

An assembly language program that will read a character from keyboard (console input with echo function) and print it on the screen. (USE: character output function) ♣ Try it out :: .model small .stack 100h .code main proc mov ah, 1 int 21h mov ah, 2 mov dl, al int 21h mov ah, 4ch int 21h main endp end main ♣ Sample Input and Output :: M M