Hello World assembly language

Greg 'groggy' Lehey grog at FreeBSD.org
Thu Sep 29 01:20:58 UTC 2011


[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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110929/e5751c94/attachment.pgp


More information about the freebsd-hackers mailing list