Apr 21, 2026 Post comments count32 Post likes count4 Sure, xor’ing a register with itself is the idiom for zeroing it out, but why not sub? Raymond Chen Somehow xor became the most popular version.