Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- fmtin: db "%d%d", 0
- fmtout: db "%d", 10, 0
- section .bss
- a: resd 1
- b: resd 1
- section .text
- extern _printf
- extern _scanf
- global _main
- _main:
- push b
- push a
- push fmtin
- call _scanf
- add esp, 12
- mov eax, [a]
- add [b], eax
- push dword [b]
- push fmtout
- call _printf
- add esp, 8
- xor eax, eax
- xor ecx, ecx
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement