Advertisement
Guest User

Untitled

a guest
Dec 24th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %macro print_mass 2
  2. section .data
  3.     .str db "%d ",0
  4.    
  5. section .text
  6.     push rdx
  7.     push %1
  8. .while_mass:
  9.     push %1
  10.     push %2
  11.     mov esi, [%1]
  12.     mov rdi, .str
  13.     xor eax, eax
  14.     call printf
  15.     pop %2
  16.     pop %1
  17.  
  18.     add %1, STEP
  19.     cmp %1, %2
  20.     jb .while_mass
  21.  
  22.     push %1
  23.     push %2
  24.     mov rdi, 10
  25.     call putchar
  26.     pop %2
  27.     pop %1
  28.     pop %1
  29.     pop rdx
  30. %endmacro
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement