You are on page 1of 1

data segment

x dw ?
c d ?
data ends
code segment
assume cs:code, ds:data
start
mov ax,data
mov ds,ax
mov bx,9
mov x,bx
mov bx,7
mov cx,8
add bx,cx
mov ex,bx
mov x,ex

mov bx,6
mov cx,a
sub bx,cx
mov ex,bx
mov y,ex
mov bx,a
mov cx,b
test bx,cx
jle l1
mov bx,b
mov a,bx
label l0:
label w0:
mov bx,b
mov a,bx
cmp a,b
js w0
mov ah,4ch
int 21h
code ends
end start

You might also like