data segment
n1 dd 11111111h
n2 dd 22222222h
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ax,word ptr n1
mov bx,word ptr n2
add ax,bx
mov cx,word ptr n1+2
mov dx,word ptr n2+2
adc cx,dx
int 03h
code ends
end start
n1 dd 11111111h
n2 dd 22222222h
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ax,word ptr n1
mov bx,word ptr n2
add ax,bx
mov cx,word ptr n1+2
mov dx,word ptr n2+2
adc cx,dx
int 03h
code ends
end start
No comments:
Post a Comment