Guest User

Untitled

a guest
Aug 18th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SECTION .data
  2. sum resb 2; assign two bytes
  3.  
  4. SECTION .text
  5. global _start
  6.  
  7. _start:
  8. mov eax,3
  9. mov ebx,5
  10. add eax,ebx
  11. mov [sum], eax ;moves the value of eax to sum
  12. mov ecx,sum
  13. mov edx,1 ;number of bytes to show
  14. mov ebx, 1 ; STDOUT file
  15. mov eax, 4 ; SYS_WRITE (kernel opcode 4)
  16. int 80h
  17.  
  18. mov eax,1
  19. int 80h
RAW Paste Data