Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %macro print_mass 2
- section .data
- .str db "%d ",0
- section .text
- push rdx
- push %1
- .while_mass:
- push %1
- push %2
- mov esi, [%1]
- mov rdi, .str
- xor eax, eax
- call printf
- pop %2
- pop %1
- add %1, STEP
- cmp %1, %2
- jb .while_mass
- push %1
- push %2
- mov rdi, 10
- call putchar
- pop %2
- pop %1
- pop %1
- pop rdx
- %endmacro
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement