Date: Mon, 1 Nov 1999 14:54:27 -0500 From: Jonathan Towne <wrongway@slic.com> To: Isaac Flemming <iflemmin@mission.mvnc.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: NASM programs for freebsd Message-ID: <19991101145426.B59390@massve.geek.edu> In-Reply-To: <Pine.GSO.3.96.991031182248.15253A-100000@mission.mvnc.edu>; from Isaac Flemming on Sun, Oct 31, 1999 at 06:41:51PM -0500 References: <Pine.GSO.3.96.991031182248.15253A-100000@mission.mvnc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Ok, if i happen to remember correctly, assembly isn't so easy
under freebsd or linux as it is under dos, mainly because we
aren't in real time anymore..and the kernel prevents you from
accessing the hardware so easily via assembly. You might wish
to try using system calls.. example below..
section .text
bits 32
extern printf
global main
msg db 'Hello, World!',10,0
main:
push dword msg
call printf
add esp,4
retn
Hope this helps in any way possible.. :)
--
Jonathan Towne jontow@massive.geek.edu/wrongway@slic.com
Systems Administrator http://massive.geek.edu/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU d- s: a--- C+++ UB++++ P L- E--- W--- N++ o K w---
O-- M V- PS PE Y-- PGP- t+ 5 X+ R+ tv- b+ DI+ D++
G e- h-- r-- y
------END GEEK CODE BLOCK------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991101145426.B59390>
