Date: Mon, 14 Jun 2004 17:04:00 +0300 From: Peter Pentchev <roam@ringlet.net> To: Jos? Nicol?s Castellano <jncastellano@noconname.org> Cc: freebsd-hackers@freebsd.org Subject: Re: freebsd asm Message-ID: <20040614140400.GF827@straylight.m.ringlet.net> In-Reply-To: <003801c45207$01ddfa70$0200a8c0@peron> References: <003801c45207$01ddfa70$0200a8c0@peron>
next in thread | previous in thread | raw e-mail | index | archive | help
--bGR76rFJjkSxVeRa Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote: > Hello to all, >=20 > I'm proud to join this mailing, having posibilities to learn some new > features of freebsd system. >=20 > I have to mention i did some tests in asm from freebsd-devel and i get > surprised, look at this: >=20 > [demon]~$ uname -a > FreeBSD demon.noconname.org 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4 #0: > Tue Apr 6 19:35:49 CEST 2004 > root@demon.noconname.org:/usr/obj/usr/src/sys/NocONName i386 >=20 > [demon]~$ cat hello.asm > %include 'system.inc' > section .data > hola db 'Hola', 0Ah > hbytes equ $-hola > section .text > global _start > _start: > push dword hbytes > push dword hola > push dword stdout > sys.write > push dword 0 > sys.exit >=20 > [demon]~$ nasm -f elf hello.asm > hello.asm:1: fatal: unable to open include file `system.inc' >=20 > ?Where is that file?... the -current port of nasm is incomplete ? I assume you are referring to the system.inc file mentioned in http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86-po= rtable-code.html If so, note that this page says that you need to create this file yourself, it is neither part of nasm nor part of the standard FreeBSD distribution :) See the last paragraph on the page - "Go ahead, enter it into your editor and save it as system.inc." :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 "yields falsehood, when appended to its quotation." yields falsehood, when = appended to its quotation. --bGR76rFJjkSxVeRa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAzbBQ7Ri2jRYZRVMRAhgjAJoD2VkUdzQy/0P1uiY/qNktlyAASwCeLRRR 8zKxQCkIlv1KVuAxwvOJZSo= =tgVH -----END PGP SIGNATURE----- --bGR76rFJjkSxVeRa--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040614140400.GF827>