mad1231999

Untitled

Apr 26th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2. msg db  "Hello, World!", 0x0a   ; Hello, World! and newline
  3. len equ $-msg           ; Length of msg
  4.  
  5. section .text
  6.     global _start
  7.  
  8. _start:
  9.     mov cx, 9
  10.  
  11.     loop_start:
  12.         push    cx
  13.         add     ecx, 0x30
  14.         push    cx
  15.  
  16.         mov eax, 0x04
  17.         mov ebx, 0x01
  18.         mov ecx, esp
  19.         mov edx, 1
  20.         int     0x80
  21.  
  22.         pop     cx
  23.         pop     cx
  24.         dec     cx
  25.         cmp cx, 0
  26.         jge     loop_start
  27.  
  28.     mov     eax, 0x01   ; sys_exit
  29.     mov ebx, 0x00   ; no file descriptor
  30.     int     0x80
Advertisement
Add Comment
Please, Sign In to add comment