I'm totally new to assembly programming. I'm to find out if the number in al is positive or negative. I've defined tow labels. But my code is executing both labels. Positive and Negative. the cmp and jnl, jl instruction has no effect. Someone, please explain my mistakes.
.data
string db 'Negetive','$'
string2 db 'Postive', '$'
.code
mov dx,@data
mov ds,dx
L1: mov al,-2h
L2: cmp al,0
jl Negative
jnl Positive
Negative:
lea dx,string
mov ah,09h
INT 21H
Positive:
lea dx,string2
mov ah,09h
INT 21H