NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: x86_64 assembly Hello World



At Sun, 11 Feb 2024 10:39:36 +0100, Fekete Zoltán <fekete.zoltan%minux.hu@localhost> wrote:
Subject: x86_64 assembly Hello World
> 
> I have played with GNU as and ld, and
> subsequently created a "Hello World!"
> program, which I could not find anywhere
> else so far.

Very nice!

Here's my hello.s written in x86_64 assembler for NetBSD:

	https://github.com/robohack/experiments/blob/master/thello.s

Therein you will find a reference to the following page from whence I
borrowed most of the implementation:

	https://polprog.net/blog/netbsdasmprog/

Also here's my example true(1) and false(1) written in x86_64 assembler:

	https://github.com/robohack/experiments/blob/master/ttrue.s
	https://github.com/robohack/experiments/blob/master/tfalse.s

-- 
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpx7rClJ537t.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index