Results 1 to 9 of 9

Thread: Assembly programming resources for Ubuntu?

  1. #1
    Join Date
    May 2007
    Beans
    8
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Assembly programming resources for Ubuntu?

    Hello.

    I need some good resources (MUST be FREE and ONLINE) about programming in assembly language with Ubuntu. Here is a list of all I need:

    1: How to use interrupts.

    2: System call table which explains the system calls and their functions.

    3: How to interface assembly with the OSS or ALSA and other resources.

    4: A good assembler for linux similar to the Flat Assembler (preferably with a GUI).

    I will be trying to find these myself and will edit this post (if forum rules allow) to delete the ones I've already found. Thanks for all suggestions!

    - keantoken

  2. #2
    Join Date
    Jan 2006
    Location
    Northern California
    Beans
    Hidden!
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Assembly programming resources for Ubuntu?

    I know that you can download nasm from the repos, and search google for a good nasm tutorial. I hope this helps at least a little

  3. #3
    Join Date
    Dec 2005
    Location
    Kurdistan
    Beans
    632
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Assembly programming resources for Ubuntu?

    I installed NASM but it doestn compile the program ... it gives me plent of syntax errors !
    it work fine in windows using MASM

    can somebody help me?
    how to compile my program so it doesnt give me syntax errors....

  4. #4
    Join Date
    Dec 2005
    Beans
    220
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Assembly programming resources for Ubuntu?

    You might want to post atleast some of your code

  5. #5
    Join Date
    May 2007
    Beans
    61
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Assembly programming resources for Ubuntu?

    That's a good point, because there are at lease two kinds of syntax for assemble language on x86 (that I can think of) and if you use the wrong one with the wrong assembler then you'll run into problems.

    These are GAS and NASM. In fact most assembler have different subtleties in syntax, but GAS and NASM are the main assemblers used under Linux. Try assembling you code with GAS to see if your using GAS's syntax.

    Code:
    as your_source_file_here.S

  6. #6
    Join Date
    Oct 2006
    Location
    Austin, Texas
    Beans
    2,712
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Assembly programming resources for Ubuntu?

    Basically, if you see a bunch of "$" and "%" everywhere, and some of the opcodes are postfixed with "l" or "b" it's GAS.

    If not, and it's for Linux, then it's NASM.

    Interrupts? Well, look for a chart of the sys_calls. The command that makes the actual system call is "int 0x80" and the sys_call is defined by the value of "eax". So if the system exit call is "1", then...
    Code:
    mov eax, 1
    int 0x80
    That will exit.
    Just look for a chart on the system calls.

    If you want to use ALSO and OSS, then you need a good C interface. Possibly their development files, if not, then you can write your own small wrapper to make assembly interfacing easier. Then you just need to link to those object files.

    I never was much of a fan of FASM, but NASM is *close*. It doesn't have an IDE, but how much would an IDE help for assembly?

  7. #7
    Join Date
    Jul 2008
    Beans
    5

    Re: Assembly programming resources for Ubuntu?

    http://www.securitytube.net/Assembly...ion-video.aspx

    The best Free asm tutorial available in the Internet

  8. #8
    Join Date
    May 2007
    Beans
    8
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Assembly programming resources for Ubuntu?

    Thanks, you must be trying to creep me out though since this thread has been dead for 2 years.

    - keantoken

  9. #9
    Join Date
    Feb 2008
    Beans
    27

    Re: Assembly programming resources for Ubuntu?

    Thanks, just what I was looking for! Got NASM installed on Quantal.

Bookmarks

Posting Permissions

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