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
@@:
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
@@:
When you fnstsw ax/sahf, CF/ZF/PF are modified. Use jc or jnc (or, jb/ja) instead of jl or jg.
Yes you're right in this way all works fine. Thanx.