Skip to content

Latest commit

 

History

History
24 lines (11 loc) · 305 Bytes

File metadata and controls

24 lines (11 loc) · 305 Bytes

Question 11

What does instruction xor rdi, rdi do?

Answer

It is equivalent to:

mov rdi, 0

So, it zeroes rdi. Using xor is a common way to perform this action because the instruction is smaller (one byte vs nine for mov with operand).

prev +++ next