Hello World assembly language
Aldis Berjoza
graudeejs at gmail.com
Thu Sep 29 04:23:07 UTC 2011
On Wed, 28 Sep 2011 13:26:47 -0700
Colin Barnabas <axel at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110929/8eba3881/signature.pgp
More information about the freebsd-hackers
mailing list