mad1231999

Untitled

Apr 25th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2. msg     db      "Hello, World!", 0x0a
  3. len     equ     $-msg
  4.  
  5. section .text
  6.         global _start
  7.  
  8. _start:
  9.         mov     cx, 10  ; loop counter
  10.  
  11.         _loop_start:
  12.                 mov     ebx, 0x01
  13.                 mov     ecx, msg
  14.                 mov     edx, len
  15.                 mov     eax, 0x04
  16.                 int     0x80
  17.  
  18.                 dec     cx
  19.                 cmp     cx, 0
  20.                 jg      _loop_start
  21.  
  22.         _done:
  23.                 mov     ebx, 0x00
  24.                 mov     eax, 0x01
  25.                 int     0x80
Advertisement
Add Comment
Please, Sign In to add comment