Results 1 to 4 of 4
hi,
how to write a 8086 micro-processor program in linux?
i am using fedora 8.
which text editor to use to write the program?
which extension to give while saving ...
- 01-18-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 25
uP 8086 programming
hi,
how to write a 8086 micro-processor program in linux?
i am using fedora 8.
which text editor to use to write the program?
which extension to give while saving the program?
how and from where to run the program?
is the programming rules and commands the same as we use under TASM(turbo assembler)in windows?Last edited by devils casper; 01-18-2008 at 11:56 AM. Reason: Removed Formatting tags
- 01-18-2008 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
The default Linux assembler is as or as86 but if you're familiar with TASM you can give NASM a try. The syntax and structure are just like TASM.
Google for NASM.
Regards
- 01-20-2008 #3Just Joined!
- Join Date
- Jan 2008
- Posts
- 25
- 01-20-2008 #4Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
You can use vi if you're familiar with it (you should be!), otherwise you can try some editors for Linux like Emacs, Vim and others.
The command to install NASM in fedora should be something like:
If you have the GNU binutils installed you can try "as" the GNU assembler, it uses the standard AT&T syntax though.Code:yum install nasm
The first step to assemble your program with "as" is:
This produces an object file prog.o.Code:as prog.s -o prog.o
To make an executable you have to link the object file with:
After that you can run the program with:Code:ld prog.o -o prog
But... before making your choice you should have a read of this:Code:./prog
http://www.faqs.org/docs/Linux-HOWTO/Assembly-HOWTO
Hope this helps.
Regards


Reply With Quote
