Hacker News new | past | comments | ask | show | jobs | submit login

There is no need to compare - ORing the register with itself will suffice to set the Z flag. This is more concise on x86 - i think it's 2 bytes to OR a 32-bit register with itself, vs 3 for a compare with a (sign-extended) 8-bit immediate zero.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: