Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Logical Instructions and EIP > Zeroing Memory or Registers

7.4. Zeroing Memory or Registers

There are several ways to put a zero value into a register or a memory location:

  1. Move a value:

    mov dword ptr [a], 0
    
    mov eax, 0

  2. 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