7.4. Zeroing Memory or Registers
There are several ways to put a zero value into a register or a memory location:
Move a value:
mov dword ptr [a], 0
mov eax, 0
Use XOR (Exclusive OR) logical operation:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial