Guest User

Untitled

a guest
Apr 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extern printf
  2.  
  3. section .bss
  4. i: resb 4
  5. j: resb 4
  6. i_0: resb 4
  7.  
  8. section .data
  9. data_0000: db "1+3=%d",10,"",0
  10.  
  11. section .text
  12. global main
  13. main:
  14. mov eax, 1
  15. mov [i], eax
  16. mov eax, 3
  17. mov [j], eax
  18. mov eax, [i]
  19. mov ebx, [j]
  20. add eax,ebx
  21. mov [i_0],eax
  22. mov eax, [i_0]
  23. mov [i], eax
  24. push data_0000
  25. push dword [i]
  26. call printf
  27. add esp, 8
  28. mov eax, 0
  29. ret
Add Comment
Please, Sign In to add comment