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
Comments
Post a Comment