Re: NASM



Dirk Wolfgang Glomp <dirk@xxxxxxxxxxxxxxxxxxx> writes:
santosh schrieb:
EricFa wrote:

Hallo Eric.

Wer kennt NASM?

Ich, ein wenig.

Ups, wir sind hier gar nicht auf declax.

http://sourceforge.net/project/showfiles.php?group_id=6208

Ich habe einen kurzen Sourcecode compiled.
Jetzt will ich ihn starten und bekomme folgende Fehlermeldung:
"The parameter is incorrect"

Geben Sie das Quellenprogramm bekannt!
Anyway, sorry if that came out wrong! Only if you post the source for
your short program can we help point out the error.

I use the midnight commander, so i only push return to edit/assemble
(I know mc is a little buggy).

a) Search for the mc.ext and add/manipulate these rows:

# asm
shell/.asm
Open=/home/eric/assemble.sh %f

b) Put these assemble.sh to /home/eric/:

#! /bin/sh
/usr/bin/mcedit $1
nasm -f elf -o `echo $1|sed 's/\.asm$/.o/'` $1
ld -s -o `echo $1|sed 's/\.asm$//'` `echo $1|sed 's/\.asm$/.o/'`
rm `echo $1|sed 's/\.asm$/.o/'`

You like spawning processes, don't you?!
Use a proper shell, and simplify that to:


#!/bin/bash
/usr/bin/mcedit $1
nasm -f elf -o ${1/%.asm/.o} $1
ld -s -o ${1/%.asm/} ${1/%.asm/.o}
rm ${1/%.asm/.o}

Phil



--
The man who is always worrying about whether or not his soul would be
damned generally has a soul that isn't worth a damn.
-- Oliver Wendell Holmes, Sr. (1809-1894), American physician and writer
.



Relevant Pages

  • Re: NASM
    ... Anyway, sorry if that came out wrong! ... I use the midnight commander, so i only push return to edit/assemble ... You like spawning processes, don't you?! ...
    (alt.lang.asm)
  • Re: Seite linux.de
    ... % Terms and Conditions of Use ... % The data in this record is provided by DENIC for informational purposes only. ... % By maintaining the connection you assure that you have a legitimate interest ... Nserver: ns1.globalways.de ...
    (de.comp.os.unix.linux.misc)
  • Re: Die Lehre des Buddha
    ... und aus diesem Dilemma weist die Lehre Buddhas den ... > Nine Inch Nails - Only ... well you might say I'm losing focus ... > There is no you, ...
    (de.soc.weltanschauung.buddhismus)
  • Re: Problem mit Socket-Verbindung
    ... Server ist gestartet auf Port: ... accept incoming connection requests in BLOCKING SYNCHRONOUS MODE. ... can use either a TcpClient or a Socket to connect with a TcpListener. ... and 0 for the local port number if you want the underlying service ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Wie kann ich unter SBS 2003, den FSMO-Besitz uebernehmen?
    ... Using Ntdsutil.exe to seize or transfer FSMO roles to a domain controller ... You can use the first method if both computers are running. ... that is outlined in the following Microsoft Knowledge Base article: ...
    (microsoft.public.de.german.backoffice.smallbiz)