Advertisement
Guest User

Untitled

a guest
Oct 24th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. section .text
  3. global _start
  4. _Start:
  5.  
  6. mov ecx, 10
  7. mov eax, 1
  8.  
  9. li:
  10. mov [num], eax
  11. mov eax, 4
  12. mov ebx, 1
  13. push ecx
  14.  
  15. mov eax, [num]
  16. mov eax, '0'
  17. inc eax
  18. add eax, '0'
  19. pop ecx
  20. loop li
  21.  
  22. mov eax, 1
  23. int 80h
  24.  
  25. section .bss
  26. num resb 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement