SHARE
TWEET

Untitled

a guest Nov 17th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.  
  3. numstr:
  4.     .ascii "0"
  5.     .set len, . - numstr
  6.  
  7.  
  8. .text
  9.  
  10. .globl _start
  11. _start:
  12.     mov $5, %ebx
  13.     call loop
  14.  
  15.     mov $1, %eax
  16.     xor %ebx, %ebx
  17.     int $0x80
  18.  
  19. loop:
  20.     mov %eax, %ebx
  21.     mov %eax, %ecx
  22.     call prn
  23.     ret
  24.  
  25. prn:
  26.     add $48, %ebx
  27.     mov %ebx, numstr
  28.     mov $numstr, %ecx
  29.     mov $len, %edx
  30.     mov $4, %eax
  31.     mov $1, %ebx
  32.     int $0x80
  33.     ret
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top