Re: NASM



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/'`

Dirk
.