You are on page 1of 1

[org 0x100]

mov ax,0
mov bx,0
mov cx,0
l1:
mov ax,[arr1+bx]
add ax,[arr2+bx]
mov [arr3+bx],ax
inc bx
cmp bx,10
jne l1
int 0x21
arr1:db 1,2,3,4,5,6,7,8,9,10
arr2:db 1,2,3,4,5,6,7,8,9,10
arr3:db 10 dup (0)

You might also like