data segment
n1 dd 22222222h
n2 dd 11111111h
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
sub ax,bx
mov cx,word ptr n1+2
mov dx,word ptr n2+2
sbb cx,dx
int 03h
code ends
end start
n1 dd 22222222h
n2 dd 11111111h
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
sub ax,bx
mov cx,word ptr n1+2
mov dx,word ptr n2+2
sbb cx,dx
int 03h
code ends
end start
No comments:
Post a Comment