Skip to content

Instantly share code, notes, and snippets.

@wagnerluis1982
Created May 24, 2012 00:30
Show Gist options
  • Save wagnerluis1982/2778610 to your computer and use it in GitHub Desktop.
Save wagnerluis1982/2778610 to your computer and use it in GitHub Desktop.
Hello World em Assembly no Linux
section .data
msg db 'Hello World', 0xa ; variável db
len equ $ - msg ; tamanho variável
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1 ; File Descriptor (stdout)
mov eax, 4 ; SYS_write (system call)
int 0x80
mov eax, 1 ; SYS_exit (system call)
mov ebx, 0 ; return 0
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment