SHARE
TWEET

Untitled

a guest Jun 16th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extern printf
  2.  
  3. Segment .data
  4.  
  5. fmt:
  6.     db "%d ", 10, 0
  7.  
  8. array:
  9.     dd 1, 2, 3
  10.  
  11. Segment .text
  12. global main
  13. main:
  14.  
  15.     push rax
  16.     xor rcx, rcx
  17.     xor rdx, rdx
  18.     xor rbx, rbx
  19.  
  20.  
  21. L1:
  22.     cmp rcx, 0x3
  23.     jae end
  24.    
  25.     push rcx
  26.     mov rdi, fmt
  27.     mov rsi, dword[array+rcx*4]
  28.     call printf
  29.    
  30.     pop rcx
  31.     inc rcx
  32.  
  33.     jmp L1
  34.     ret
  35.  
  36. end:
  37.     pop rax
  38.     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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top