Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern printf
- section .bss
- i: resb 4
- j: resb 4
- i_0: resb 4
- section .data
- data_0000: db "1+3=%d",10,"",0
- section .text
- global main
- main:
- mov eax, 1
- mov [i], eax
- mov eax, 3
- mov [j], eax
- mov eax, [i]
- mov ebx, [j]
- add eax,ebx
- mov [i_0],eax
- mov eax, [i_0]
- mov [i], eax
- push data_0000
- push dword [i]
- call printf
- add esp, 8
- mov eax, 0
- ret
Add Comment
Please, Sign In to add comment