Date: Thu, 29 Sep 2011 07:04:53 +0300 From: Aldis Berjoza <graudeejs@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Hello World assembly language Message-ID: <20110929070453.28a6679a@desktop.pc> In-Reply-To: <20110928202647.GA8284@hs1.VERBENA> References: <20110928202647.GA8284@hs1.VERBENA>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/SqtNG7d0_17VK/J.DwH_Td+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 28 Sep 2011 13:26:47 -0700 Colin Barnabas <axel@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.f= asm 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/) --=20 Aldis Berjoza http://www.bsdroot.lv/ --Sig_/SqtNG7d0_17VK/J.DwH_Td+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBAgAGBQJOg+5xAAoJECrA2xnMujn6BnEIAIXVNCs8zrac0TMKFVZJLq23 BL1qe/hulovkA8oUx9sf8JXTmkB1ucgmFcOO7b87wMomg58ZVhbrszFaIvNduUyy xQrG9gLjpNk0kF/1LJYaJtkO6W8TjIMdOO/lGDbkH3AjAE+48v314Qgoxx9KwWVt qOLNVaYEnApgZO/+7fr2Nx95DguSs3ioouRrEagVdBOGc75NUSvXs1gFElxB0a2p d96tL42urtqfvDOUPSR2tZkbNVVRW8S37gfS6sVM4MttUDh+MhGC99TVd2WFpOHf Nmhk/7UwrQdi7ZiCW4nRdd+WBldrlhVDoTeKr9TfcbgHenKXfkkl2gb6CESwTAk= =43bp -----END PGP SIGNATURE----- --Sig_/SqtNG7d0_17VK/J.DwH_Td+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110929070453.28a6679a>