Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SECTION .data
- sum resb 2; assign two bytes
- SECTION .text
- global _start
- _start:
- mov eax,3
- mov ebx,5
- add eax,ebx
- mov [sum], eax ;moves the value of eax to sum
- mov ecx,sum
- mov edx,1 ;number of bytes to show
- mov ebx, 1 ; STDOUT file
- mov eax, 4 ; SYS_WRITE (kernel opcode 4)
- int 80h
- mov eax,1
- int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement