Created
March 3, 2012 15:55
-
-
Save gandaro/1966795 to your computer and use it in GitHub Desktop.
“Hello world” written using AT&T assembly
This file contains 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
.data | |
hello: | |
.string "Hello world!\n" | |
.text | |
.globl _start | |
_start: | |
movl $4, %eax # write(1, hello, strlen(hello)) | |
movl $1, %ebx | |
movl $hello, %ecx | |
movl $13, %edx | |
int $0x80 | |
movl $1, %eax # exit(0) | |
movl $0, %ebx | |
int $0x80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is better than counting with your fingers.
`