Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- global _start
- _start:
- ; Input values
- mov eax, 10 ; First integer: 10
- mov ebx, 20 ; Second integer: 20
- ; Add the values
- add eax, ebx
- ; Exit the program
- mov ebx, 0 ; Exit status: 0
- mov eax, 1 ; System call number for exit
- int 0x80 ; Invoke the system call
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement