Skip to content

Instantly share code, notes, and snippets.

@agutoli
Created September 25, 2012 20:42
Show Gist options
  • Save agutoli/3784311 to your computer and use it in GitHub Desktop.
Save agutoli/3784311 to your computer and use it in GitHub Desktop.
Hello world em assembly
; Exemplo de um Hello World em Assembly
; ld -m elf_i386 -s -o hello hello.o
section .text align=0
global _start
mensagem db 'Hello world', 0x0a
len equ $ - mensagem
_start:
mov eax, 4 ;SYS_write
mov ebx, 1 ;Número do file descriptor (1=stdout)
mov ecx, mensagem ;Ponteiro para a string.
mov edx, len ; tamanho da mensagem
int 0x80
mov eax, 1
int 0x8
@bernardoHeckler
Copy link

valeuuuu!!!mesmo assim é impressionante uau kkkkkkkkkkkk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment