PDA

View Full Version : 1st program in FASM with Ubuntu



Jack Shankle
February 18th, 2009, 12:10 AM
I have downloaded the FASM Compiler and uncompressed it to:
places/home/jack/fasm. The program is in places/home/jack/fasmjps.asm and is
a file not a folder. I want to compile fasmjps.asm and put the result in
A1stprog. Nothing I have tried works. A 10 minute task is taking many hours
with no success.
Thanks for any help.

2% ubuntu working on 3%

Caduceus
February 18th, 2009, 03:02 AM
Might be a good idea to see whether you've installed the compiler correctly, I don't think sticking it in a folder works properly

jimi_hendrix
February 18th, 2009, 03:06 AM
is there a man fasm?

Jack Shankle
February 18th, 2009, 03:40 AM
If I don't put it in that folded then it would go into a folder I have called "mydownload". That is a place I download all programs.

I have no idea what a man fasm version is.

Also I've been reading about command line entries. How do I do that in Ubuntu/fasm????

Thanks for any help.

2% Ubuntu working on 3%

NathanB
February 18th, 2009, 04:05 AM
Assuming you've D/Led fasm into your home folder, then this...


cd ~
tar xzvf fasm-1.67.32.tgz

...will unpack it.

Now try this:


cd fasm
./fasm ~/fasm/examples/elfexe/hello.asm hw

Now you can run the program with:

./hw


More information here:

http://www.linuxcommand.org/learning_the_shell.php

Jack Shankle
February 18th, 2009, 05:55 PM
Thanks NathanB.
The link you provided is a gold mine. I'll be chewing on that one for
quite awhile. If you know of any other goodies like that, I would appreciate your telling me in this thread. I had no idea it even existed. People have to understand that those coming from Windows have an awful learning curve to tackle. My long term habits are messing me up in Ubuntu.
I will delete all my attempts at FASM and redo everything according
to your instructions and see how I do then.

2% Ubuntu working on 3%
Maybe not even that much.

NathanB
February 19th, 2009, 08:42 PM
https://help.ubuntu.com/

http://tldp.org/