Advertisement
A_GUES

X86-32

Jun 23rd, 2023 (edited)
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. section .text
  2. global _start
  3.  
  4. _start:
  5. ; Input values
  6. mov eax, 10 ; First integer: 10
  7. mov ebx, 20 ; Second integer: 20
  8.  
  9. ; Add the values
  10. add eax, ebx
  11.  
  12. ; Exit the program
  13. mov ebx, 0 ; Exit status: 0
  14. mov eax, 1 ; System call number for exit
  15. int 0x80 ; Invoke the system call
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement