Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 18th, 2010 | Syntax: ASM (NASM) | Size: 0.29 KB | Hits: 68 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. if(a == b && b == c)
  2.  
  3.         movl    -4(%rbp), %edx
  4.         movl    -8(%rbp), %eax
  5.         cmpl    %eax, %edx
  6.         movl    -8(%rbp), %edx
  7.         movl    -12(%rbp), %eax
  8.         cmpl    %eax, %edx
  9.         leaq    LC0(%rip), %rdi
  10.  
  11.  
  12.  
  13. unsigned int xyz = 16;
  14. xyz &= ~c;
  15.  
  16.         movl    $16, -16(%rbp)
  17.         movl    -12(%rbp), %eax
  18.         notl    %eax
  19.         andl    %eax, -16(%rbp)