Thursday, October 29, 2009

8086 Assembly Language Program to add the elements(word) of 2 arrays and store the result(word) in another array

data segment
arr1 dw 10h,20h,30h,40h,50h
arr2 dw 10h,20h,30h,40h,50h
arr3 dw 5 dup (0)
data ends

code segment
assume cs:code , ds:data
start:

mov ax,data
mov ds,ax

lea si,arr1
lea di,arr2
lea bx,arr3

mov cl,5
l1:
mov ax,[si]
add ax,[di]
mov [bx],ax

add si,2
add di,2
add bx,2
dec cl
jnz l1

mov ah,4ch
int 21h
code ends
end start

1 comment:

  1. merit casino Archives - delccasino.com
    Merus Casino 메리트카지노 & Hotel. Merus Casino & Hotel in Las matchpoint Vegas. Merus Casino & Hotel, formerly Merus Resorts, was opened in 2015 bet365 as a joint venture between

    ReplyDelete