Google Search

Friday, October 7, 2011

ALP for addition of two 16 bit numbers using indirect addressing mode


ALP for addition of two 16 bit numbers using indirect addressing mode


data segment
first dw ?
second dw ?
sum dw 2 dup(0)
data ends
code segment
assume cs:code, ds:data
start:
mov ax,first
mov bx,second
add ax,bx
mov sum,ax
code ends
end start

0 comments:

Post a Comment