News for hackers. Stuff that matters.
Re:XOR'ing a register with itself is the idiom for zeroing i... by bonzini on Wednesday April 22, 2026 @09:06AM (#47863013)
6502 doesn't even have register-to-register ALU operations, there's no alternative to LDA #0.

8080/Z80 is probably where XOR A got a lead over SUB A, but they are also the same number of cycles.

There are no comments on this comment yet.