From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 01:20:58 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 240C4106566C for ; Thu, 29 Sep 2011 01:20:58 +0000 (UTC) (envelope-from grog@lemis.com) Received: from w3.lemis.com (w3.lemis.com [208.86.224.149]) by mx1.freebsd.org (Postfix) with ESMTP id EA3258FC13 for ; Thu, 29 Sep 2011 01:20:57 +0000 (UTC) Received: from dereel.lemis.com (1032.x.rootbsd.net [208.86.224.149]) by w3.lemis.com (Postfix) with ESMTP id 412EE3BAB1; Thu, 29 Sep 2011 01:03:32 +0000 (UTC) Received: by dereel.lemis.com (Postfix, from userid 1004) id C8A9FDAE69; Thu, 29 Sep 2011 11:03:30 +1000 (EST) Date: Thu, 29 Sep 2011 11:03:30 +1000 From: Greg 'groggy' Lehey To: Andrew Duane Message-ID: <20110929010330.GD50397@dereel.lemis.com> References: <20110928202647.GA8284@hs1.VERBENA> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: The FreeBSD Project Phone: +61-3-5346-1370 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: FreeBSD Hackers Subject: Re: Hello World assembly language X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 01:20:58 -0000 --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--