Created
May 4, 2014 20:52
-
-
Save tetsuok/8f87b3a8caf037051520 to your computer and use it in GitHub Desktop.
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
; http://farid.hajji.name/blog/2009/12/26/hello-world-in-freebsd-assembler/ | |
.type main,@function | |
.data | |
msg: | |
.ascii "Hello, world\n" | |
.text | |
.globl main | |
main: | |
movl $14, %edx | |
movq $msg, %rsi | |
movl $0, %edi | |
movq $4, %rax | |
movq %rcx, %r10 | |
syscall | |
movl $0, %edi | |
movq $1, %rax | |
movq %rcx, %r10 | |
syscall |
Author
tetsuok
commented
May 5, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment