Advertisement
Xioth

Tutorialspoint Assembly

Jul 25th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .text
  2.     global _start
  3.  
  4. _start:
  5.     mov eax, 4
  6.     mov ebx, 1
  7.     mov ecx, msg
  8.     mov edx, msgLen
  9.     int 0x80
  10.    
  11.     mov ecx, [nb]
  12.     inc ecx
  13.     mov [nb], ecx
  14.     cmp ecx, [nbCmp]
  15.     jl _start
  16.    
  17.     mov eax, 1
  18.     int 0x80
  19.    
  20. section .data
  21.     nb dd 0
  22.     nbCmp dd 10
  23.     msg dd 'Hello World !', 0xa
  24.     msgLen equ $-msg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement