You are on page 1of 1

Q.Assembly language program to transfer two string.

program:-

assume cs:code
assume ds:data
data segment
block1 db 11h,22h,33h,44h
block2 db 5 DUP (?)
ends data
code segment
start:
mov ax,data
mov ds,ax
mov ax,0000h

lea si,block1
lea di,block2

mov cl,5
UP:mov al,[si]
mov [di],al
inc si
inc di
LOOP UP

int 3
ends code
end start

output:-

You might also like