by kayson · 5y ago · 0 comments
It's an idiomatic way to populate a register with the value zero.
Not sure if it's still true, but IIRC it took fewer cycles than the more obvious "load #0 into $rcx" instruction.
48 31 c9 xor rcx,rcx
48 c7 c1 00 00 00 00 mov rcx,0x0
(This is even shorter: 31 c9 xor ecx,ecx
)(Neighbor’s got it, and I am as unsure of contemporary relevance as they are.)