Guest User

helloworld.s

a guest
Jan 8th, 2013
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .section .data
  2. message:
  3.     .ascii "Hello World\n"
  4.     len = . - message
  5.  
  6. .section .text
  7. .globl _start
  8. _start:
  9.     #write mesaje to stdout
  10.     movl $len, %edx              # LEN
  11.     movl $message, %ecx          # BUFFER
  12.     movl $1, %ebx                # FD
  13.     movl $4, %eax                # WRITE
  14.     int $0x80                    # SYSCALL
  15.     #exit
  16.     movl $0, %ebx                # RETVALUE
  17.     movl $1, %eax                # EXIT
  18.     int $0x80                    # SYSCALL
RAW Paste Data