On Wed, 28 Sep 2011 13:26:47 -0700
Colin Barnabas <a...@ucs.com> wrote:

> 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?

You need to write 0xA for newline
https://github.com/graudeejs/asm4BSD/blob/master/examples/000-hello/hello.fasm


Check this out: https://github.com/graudeejs/asm4BSD
For my university Assembler practical work, I picked FreeBSD

There is hellow world, that will/should run on any BSD
and in FreeBSD directory there are more examples

All that is for i386, but there shouldn't be to much problem to convert
it to amd64

Oh, and it's written in lang/fasm (http://flatassembler.net/)
-- 
Aldis Berjoza
  http://www.bsdroot.lv/

Attachment: signature.asc
Description: PGP signature

Reply via email to