Re: NASM
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 30 May 2006 19:08:39 +0300
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
.
- Follow-Ups:
- Re: NASM
- From: Dirk Wolfgang Glomp
- Re: NASM
- Prev by Date: Re: itoa assembly version
- Next by Date: Re: MASM Expert needed immediately
- Previous by thread: Re: NASM
- Next by thread: Re: NASM
- Index(es):
Relevant Pages
|