I have the following question: Could it be that OR EAX, EAX represents a if statement?
The reason why I ask is, I have read the following in an assembly code:
.... OR EAX, EAX JNZ funct.A ..... Before the line OR EAX, EAX comes, the function strcmp is called which has the return value 00000001 stored in EAX. So I have found out that: if the return value is greater than zero indicates that the first character that does not match has a greater value in string1 than in string2.
So, my first question would be: What does that mean "if the return value is greater than zero indicates that the first character that does not match has a greater value in string1 than in string2."
And the second question would be: Can I translate the assembly code in pseudo C-Code like the following:
if(EAX == 1){ funct.A; } Is that ok? Or completely wrong? If yes, then what would your suggestions?
EAX, which is tested here with theOR.