Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 1999 11:48:48 -0500 (EST)
From:      Isaac Flemming <iflemmin@mission.mvnc.edu>
To:        freebsd-questions@freebsd.org
Subject:   NASM for FreeBSD (update...)
Message-ID:  <Pine.GSO.3.96.991101095826.7261B-100000@mission.mvnc.edu>

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

 Hello again,

 First I would like to thank all of you who sent replies to my question.
They have been helpful. Second I would like to clarify my question to
answer questions you had about it.

 I want to use the Netwide Assembler (NASM) to assemble some programs for
a class I am taking. I am running FreeBSD 3.2-Release. When I attempt to
assemble the programs written for a DOS box I get no errors, but when I
try to execute them I get the message "cannot execute binary file." I have
tried to compile them with a .c program that calls it but I either get a
message telling me "file not recognized: File format not recognized," This
I learned is because I was using a.out format instead of elf, Now that I
am using elf my program core dumps. I do realize that there are many
differences between the way DOS and FreeBSD use interrupts. My question
now is does anyone know of any documentation that will tell me how to do
I/O calls to the system in FreeBSD? Also once I do have information about
the I/O calls will I be able to execute the programs assembled as stand
alone programs or do I have to call them with a .c program? I cannot seem
to get NASM to assemble a stand alone program!? 

 Thanks again
 Isaac D. Flemming

-------------------------------------------------------------------------------
Isaac D. Flemming
Senior Computer Science Major
Mount Vernon Nazarene College

Email: iflemmin@mvnc.edu
Phone: (740) 397-6862 x7604






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.991101095826.7261B-100000>