Date: Wed, 28 Sep 2011 13:26:47 -0700 From: Colin Barnabas <axel@ucs.com> To: <freebsd-hackers@freebsd.org> Subject: Hello World assembly language Message-ID: <20110928202647.GA8284@hs1.VERBENA>
next in thread | raw e-mail | index | archive | help
I found a hello world program written in assembly language which runs on my amd64 8.2 stable box. However, I can not seem to get it to print a new line. Any suggestions on how to print a line feed in assembly? Here is the code- section .data message: db 'hello, world!', 0x0a section .text global _start _start: mov rax, 4 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 1 xor rdi, rdi syscall
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110928202647.GA8284>