if ax is positive than show 1 ,ax is 0 then show 0 and if ax is " - " than show -1 ,solve the problem by using assembly language
.model small
.stack 100h
.data
.code
main proc
mov ah,1
int 21h
mov bl,al
cmp bl,'0'
jz zero
js negetiv
jns positiv
zero:
mov ah,2
mov dl,30h
int 21h
jz exit
negetiv:
mov ah,2
mov dl,2dh
int 21h
mov dl,31h
int 21h
js exit
positiv:
mov ah,2
mov dl,31h
int 21h
jns exit
exit:
mov ah,4ch
int 21h
main endp
end main
কোন মন্তব্য নেই