- Assembly code
float val1=1.21f;00DB152E fld dword ptr [__real@3f9ae148 (0DB7838h)] 00DB1534 fstp dword ptr [val1] float val2=2.2f;00DB1537 fld dword ptr [__real@400ccccd (0DB7834h)] 00DB153D fstp dword ptr [val2] if(val1>val2)00DB1540 fld dword ptr [val1] 00DB1543 fld dword ptr [val2] 00DB1546 fcompp 00DB1548 fnstsw ax 00DB154A test ah,5 00DB154D jp main+56h (0DB1566h) { printf("val1>val2");jp执行,pf=1则跳转,pf是奇偶标志位,test ah,5 检测哪一个标志位??
------解决方案--------------------------------------------------------
0000 0101B