Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    25

    Exclamation 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

  2. #2
    Linux 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

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    25
    Quote Originally Posted by Franklin52 View Post
    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
    hi,
    can you pls elaborate like which editor to use,
    which command to use,is the assembler built-in under fedora8?

  4. #4
    Linux 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:

    Code:
    yum install nasm
    If you have the GNU binutils installed you can try "as" the GNU assembler, it uses the standard AT&T syntax though.
    The first step to assemble your program with "as" is:

    Code:
    as prog.s -o prog.o
    This produces an object file prog.o.
    To make an executable you have to link the object file with:

    Code:
    ld prog.o -o prog
    After that you can run the program with:

    Code:
    ./prog
    But... before making your choice you should have a read of this:

    http://www.faqs.org/docs/Linux-HOWTO/Assembly-HOWTO

    Hope this helps.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...