Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. main:
  2.   push rbp
  3.   mov rbp, rsp
  4.   mov DWORD PTR [rbp-4], 0
  5.   mov DWORD PTR [rbp-8], 0
  6.   add DWORD PTR [rbp-4], 1
  7.   mov eax, DWORD PTR [rbp-4]
  8.   mov DWORD PTR [rbp-8], eax
  9.   mov eax, 0
  10.   pop rbp
  11.   ret
  12.  
  13. main:
  14.   push rbp
  15.   mov rbp, rsp
  16.   mov DWORD PTR [rbp-4], 0
  17.   mov DWORD PTR [rbp-8], 0
  18.   mov eax, DWORD PTR [rbp-4]
  19.   lea edx, [rax+1]
  20.   mov DWORD PTR [rbp-4], edx
  21.   mov DWORD PTR [rbp-8], eax
  22.   mov eax, 0
  23.   pop rbp
  24.   ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement