Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global main
- extern printf
- extern scanf
- section .data
- scan_2d db '%d %d',10, 0
- section .bss
- N: resb 4
- K: resb 4
- section .text
- main:
- push ebp
- mov ebp, esp
- push K
- push N
- push scan_2d
- call scanf
- add esp, 12
- push dword[K]
- push dword[N]
- push scan_2d
- call printf
- add esp, 12
- mov esp, ebp
- pop ebp
- mov eax, 0
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement