Created
March 27, 2018 15:52
-
-
Save shailrshah/c3e2377908066b99416d2d4df06161aa to your computer and use it in GitHub Desktop.
Hello World in Assembly
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
# Hello World Program in Assembly | |
.data | |
HelloWorldString: | |
.ascii "Hello World\n" | |
.text | |
.globl _start | |
_start: | |
#Load all arguments for write(fd, buffer, count) | |
movl $4, %eax | |
movl $1, %ebx | |
movl $HelloWorldString, %ecx | |
movl $12, %edx | |
int $0x80 | |
#Exit Gracefully | |
movl $1, %eax | |
movl $0, %ebx | |
int $0x80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment