Dossier
Registers
Coverage of Registers in the Nexus archive.
- XOR'ing a register with itself is the idiom for zeroing it out. Why not sub?
The article explains that in assembly programming, XOR'ing a register with itself is a common idiom to zero it out, and discusses why subtraction is not used for the same purpose. It references a Microsoft blog post and Hacker News comments for context.