'I cannot understand setg instruction

I learned that setg's condition is "~(SF^OF)&~ZF" and I can understand the case when SF = 0, OF = 0, ZF != 0, it means "greater than zero".

However, I cannot understand "SF = 1, OF = 1, ZF != 0" case. How can I accept this case?

thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source