Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2011 11:03:30 +1000
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Andrew Duane <aduane@juniper.net>
Cc:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: Hello World assembly language
Message-ID:  <20110929010330.GD50397@dereel.lemis.com>
In-Reply-To: <AC6674AB7BC78549BB231821ABF7A9AEB8086A45D0@EMBX01-WF.jnpr.net>
References:  <20110928202647.GA8284@hs1.VERBENA> <AC6674AB7BC78549BB231821ABF7A9AEB8086A45D0@EMBX01-WF.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--DiL7RhKs8rK9YGuF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

[sequence recovered]

On Wednesday, 28 September 2011 at 17:13:47 -0400, Andrew Duane wrote:
> On  Wednesday, September 28, 2011 1:27 PM, Colin Barnabas 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?
>
> Add a 0x0d to the end of the string (0xa = LF, 0xd = CR)

No, that is a Microsoftism.  UNIX doesn't use \r to terminate a line.
Others have pointed out that this was a length issue.

Greg
--
Sent from my desktop computer
Finger grog@FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua

--DiL7RhKs8rK9YGuF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iEYEARECAAYFAk6Dw+IACgkQIubykFB6QiPi8wCfWcGXRDZFTwWtktWZk+L2hcUo
ESIAoIfCJLPIUzkKW6GIKjrCWq4lswg8
=CQf7
-----END PGP SIGNATURE-----

--DiL7RhKs8rK9YGuF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110929010330.GD50397>