Assembly language program to print two different string in two different lines
Code
org 100h
.stack 100h
.data
string1 db "This is String 1$"
string2 db "This is String 2$"
.code
main proc
mov ax,@data
mov ds,ax
mov dx,offset string1
mov ah,09
int 21h
;for new line
mov dx,10
mov ah,02
int 21h
mov dx,13
mov ah,02
int 21h
mov dx,offset string2
mov ah,09
int 21h
mov ah,4ch
int 21h
main endp
end main
Comments
Post a Comment