Hey guys i have my finals coming up ,currently studying assembly and i'm struggling with one thing that i cant really find an answer too. Lets say i have 2 Double Values x1=-0.5 ,x2=1.0 i want to compare x1 and x2, but sadly one of them is signed (x1) and the other is unsigned, I want to use a Condition ,lets say the #C equivalent of
"While(x1<=x2)"
so iam using the following code:
_find_delta2 PROC NEAR
PUSH BP
MOV BP,SP
MOV AX,0
L1:
MOV AX,0
FLD CNT
FMUL QWORD PTR [BP+22];ST0=I*H
FADD QWORD PTR [BP+6]; STO0=I*H+X1
FST TMP ; TMP=I*H+X1
FCOMP QWORD PTR [BP+14] ; ST0 COMPRAE WITH X2
FSTSW AX
SAHF
JNL DONE
Sadly,in the first Loop it appears that the condition is met despite x1=-0.5, x2=1.0 How could i solve this issue? Thanks!