Created
May 24, 2012 00:30
-
-
Save wagnerluis1982/2778610 to your computer and use it in GitHub Desktop.
Hello World em Assembly no Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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