mad1231999

Untitled

Apr 26th, 2013
92
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     edx, 20
  10.         add     edx, '0'        ; convert to ASCII
  11.         push    dx              ; push to stack
  12.  
  13.         mov     eax, 0x04       ; write
  14.         mov     ebx, 0x01       ; to STDOUT
  15.         mov     ecx, esp
  16.         mov     edx, 0x01       ; write 1 byte
  17.         int     0x80
  18.  
  19.         mov     ebx, 0x00
  20.         mov     eax, 0x01
  21.         int     0x80
Advertisement
Add Comment
Please, Sign In to add comment