Hi,
i have following test code what dont work, the problem is it's always jumping on jg statement not depending on f2 value but i'd like to know is f1 greater or not.

.DATA
f1 QWORD 03h
f2 QWORD 01h
.CODE
start:
finit
fild f1
fild f2
fcompp
fstsw ax
fwait
sahf
je @F
nop
jg @F
nop
jl @F
nop
@@:
Posted on 2003-11-18 18:19:47 by sirurx
When you fnstsw ax/sahf, CF/ZF/PF are modified. Use jc or jnc (or, jb/ja) instead of jl or jg.
Posted on 2003-11-18 18:40:18 by Starless
Yes you're right in this way all works fine. Thanx.
Posted on 2003-11-18 19:27:56 by sirurx