Assembly language program to print name using a String

Code

org 100h
.stack 100h
.data
string db 'My name is MR.NOBODY $'  ;initialize string in '.data' section and '&' represent end of string
 
.code
main proc
    mov ax,@data   ;giving address of data to ax
    mov ds,ax       ;intitialize memory in heap
    
    mov dx,offset string    ;offset is used to giving string to dx
    
    mov ah,09        ;09 is used to disply a string
    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 display sum of all even numbers between 1 to 100

Assembly language program to input string from user and display it