Last active
August 29, 2015 14:26
-
-
Save nkaretnikov/ebeb9d9b8a7e11a9be31 to your computer and use it in GitHub Desktop.
hello world 42
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
.data | |
hello: | |
.asciz "hello world %d\n" | |
.text | |
.globl main | |
main: | |
subq $8, %rsp | |
movb $0, %al | |
movq $42, %rsi | |
leaq hello(%rip), %rdi | |
call printf | |
movq $0, %rdi | |
call exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment