Assembly question

This is a discussion on Assembly question within the Tech Board forums, part of the Community Boards category; I know this is not a forum for assembly language, but I cannot find one. I figured that there are ...

  1. #1
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198

    Smile Assembly question

    I know this is not a forum for assembly language, but I cannot find one. I figured that there are some people who probably know some assembly because they work with C. I just need help getting started, because I can't get tasm or masm or nasm to work... I'm sure it's something simple that I'm doing wrong, but I have never been able to just get started in assembly. If you could lead me to a good tutorial that would be awesome. By the way, I'm trying to learn basic x86 assembly. And I'm sorry if I shouldn't be posting this here, I just don't know what else to try. Thanks a lot for any help.
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    http://webster.cs.ucr.edu/AoA/index.html
    http://www.drpaulcarter.com/pcasm/

    I ran across these a while back but haven't taken much time to look at them.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I would start with Radnall Hyde's Art of Assembly... at least that's what I did.
    http://webster.cs.ucr.edu/AoA/DOS/

    I also learn quite a lot by looking at the assembly output of a C program during a debugging session with visual studio.

    EDIT: Ah 2 minutes late.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #4
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    Hey, thanks a lot for the help, I will check out the links soon. ahluka, interesting suggestion to look at the output of a C program during debugging. However, I don't have Visual Studio. I am working in Dev-Cpp (honestly I haven't written anything in C/C++ in probably a year now, I'm studying for Sun Certified Java Programmer Cert.). I'll have to bust out the old Dev IDE. I remember having some trouble getting debug to work... something to do with the beta version of the debugger I think. Anyway, I really appreciate help, because this is probably my 4th or 5th attempt at learning assembly, but I have never been able to compile one source file...
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

  5. #5
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    No problem.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  6. #6
    Registered User Misterx's Avatar
    Join Date
    Mar 2007
    Posts
    5
    Here are a couple of links you may find useful: http://www.masm32.com/board/index.php#1
    http://win32assembly.online.fr/tutorials.html

    and try googling olly debug

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    > I know this is not a forum for assembly language, but I cannot find one
    Moved to the correct forum.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    Wow, I really appreciate all the help I'm getting already. You guys rock.
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

  9. #9
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    I believe Borland's command line tools allow for you to write assembly programs if you're looking for a simple assembler. It's just a thought, if you're already used to Borland.

  10. #10
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    I think GCC comes with an assembler -- I don't know what it's called, nor have I ever used it. If it does, you likely have it with Dev-C++.

    You can generate assembler output with GCC (a.k.a. Dev-C++) like this:
    Code:
    $ gcc -S hello.c
    It generates hello.s, an assembler file.

    You can do all kinds of neat things like that with GCC. For one, you can get the preprocessed but not compiled output (I think it's -P). Use --help for more information.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  11. #11
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    http://www.acm.uiuc.edu/sigwin/old/w.../winasmtut.pdf

    Takes you through a lot of the basics, and getting up and running quickly with MASM32.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  12. #12
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    HEY! I finally started this stuff, and using masm32 and the winasmtut.pdf tutorial that Sentral suggested, I have finally compiled my first assembly program! Thank you guys very much for helping me out, this is a big milestone for me, as I have never successfully compiled a "hello world" program with assembly before. Finally I can learn assembly.
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

  13. #13
    Registered User
    Join Date
    Apr 2007
    Posts
    129
    Quote Originally Posted by linucksrox View Post
    Hey, thanks a lot for the help, I will check out the links soon. ahluka, interesting suggestion to look at the output of a C program during debugging. However, I don't have Visual Studio. I am working in Dev-Cpp (honestly I haven't written anything in C/C++ in probably a year now, I'm studying for Sun Certified Java Programmer Cert.). I'll have to bust out the old Dev IDE. I remember having some trouble getting debug to work... something to do with the beta version of the debugger I think. Anyway, I really appreciate help, because this is probably my 4th or 5th attempt at learning assembly, but I have never been able to compile one source file...
    If you are planning on writing assembler for the x86 architecture, I find fasm to be one of the best places to start. The people at their forums are very helpful and it is very actively developed. In some ways it's more enjoyable than C programming since you have so much more control over the machine and can write blistering fast (but obviously less portable) code. Plus if you add all the HLA libraries and use the full power of the assembler macros, you can be reasonably productive with it. You can also find yourself with a debugging nightmare, but that's another story.
    http://flatassembler.net/

  14. #14
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    Thanks, I'll check that out as well. I'm struggling to find time to sit down and do this, but hopefully some time this week I'll get to it.
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assembly question
    By geek@02 in forum Tech Board
    Replies: 8
    Last Post: 08-11-2008, 06:48 AM
  2. Assembly Language Question
    By John_L in forum Tech Board
    Replies: 2
    Last Post: 03-13-2008, 07:44 PM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  5. C/C++ vs assembly: speed comparison
    By Just in forum C++ Programming
    Replies: 11
    Last Post: 11-25-2002, 02:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21