Any easy way to learn x86 assembler?

Discussion in 'Software for Windows' started by dude8604, Jan 29, 2003.

  1. dude8604

    dude8604 Platinum Member

    Joined:
    Oct 3, 2001
    Messages:
    2,680
    Likes Received:
    0
    I want to learn assembly language for some processor that I can emulate on my PC, or run directly on my computer. I'm in an advanced c++ class at the moment, but I want to know how programming works on a lower level. I found a few tutorials, but I don't know how to compile it. It would be cool to be able to program without a compiler, but I'm not about to learn binary machine code. So 2 questions: What tutorial/book should I use, and how do I compile an assembly language program?
     
  2. CTho9305

    CTho9305 Elite Member

    Joined:
    Jul 26, 2000
    Messages:
    9,214
    Likes Received:
    0
    define easy. the best way is to find some tutorials online. Ithink the language is "assembly".... the compiler for it is the "assembler"
     
  3. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Most colleges teach assembly on something like MIPS because it's much simpler to understand, x86 assembly is really ugly.
     
  4. DaveSimmons

    DaveSimmons Elite Member

    Joined:
    Aug 12, 2001
    Messages:
    38,677
    Likes Received:
    13
    Like any other language: read what the commands are, write some programs. No magic, just more steps to go through to do anything, and only a few built-in "variables" (registers).
     
  5. dude8604

    dude8604 Platinum Member

    Joined:
    Oct 3, 2001
    Messages:
    2,680
    Likes Received:
    0
    Well if MIPS is easier, couldn't I get a MIPS emulator for my computer and then write MIPS assembly?
     
  6. Nothinman

    Nothinman Elite Member

    Joined:
    Sep 14, 2001
    Messages:
    30,672
    Likes Received:
    0
    Probably. I havn't personally looked.
     
  7. manly

    manly Diamond Member

    Joined:
    Jan 25, 2000
    Messages:
    7,455
    Likes Received:
    2
    Yes, one for UNIX is called spim. =)
     
  8. Descartes

    Descartes Lifer

    Joined:
    Oct 10, 1999
    Messages:
    13,970
    Likes Received:
    0
    Read The Art of Assembly Language, get an assembler, then go to work. Careful w/ that last link, it wants to install Gator. That used to be the best resource for win32 asm long ago. I haven't done assembly work in a while.

    MASM makes assembly extremely simple, so that may be an option for you as well. There are various ways to acquire MASM if you don't already have it.

    If you're looking to do some asm on linux, look at the linux asm how-to.
     
  9. notfred

    notfred Lifer

    Joined:
    Feb 12, 2001
    Messages:
    38,243
    Likes Received:
    0
    It's available for windows, too.