News for hackers. Stuff that matters.
Re:XOR'ing a register with itself is the idiom for zeroing i... by HarHarVeryFunny on Wednesday April 22, 2026 @09:44AM (#47863551)
A number of the RISC processors have a special zero register, giving you a "mov reg, zero" instruction.

Of course many of the RISC processors also have fixed length instructions, with small literal values being encoded as part of the instruction, so "mov reg, #0" and "mov reg, zero" would both be same length.

There are no comments on this comment yet.