Thread: Assembly

  1. #16
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    Do you have a motorola chip?
    um, a zillion m68ks laying around.

    i want to get it this kind of stuff, it might be good reference for. what i really need is a textbook, ill be amazon shoping for a while now...

    I wouldnt want to print them out...they are huge.
    does that mean they explain all the opcodes and registers and stuff or are they just that many? how big do you think it is?

  2. #17
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by mart_man00
    does that mean they explain all the opcodes and registers and stuff or are they just that many? how big do you think it is?
    Well...for the intel books, the first one gives you an overview of the architecture....as well as some chapters on FPU, MMX and SSE. The second book is a big fat volume full of details on the instructions and the opcodes that map to (really good reference). The third book is a bit more advanced and includes implemention details on stuff like interupts, protection, memory management etc - mostly of use if you are writting system level code or actually creating an OS.

  3. #18
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    ok, stuff thats with out a doubt (way)over my head....

    ill just check out the pdfs....

  4. #19
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by mart_man00
    ok, stuff thats with out a doubt (way)over my head....

    ill just check out the pdfs....
    If your still learning the basics, there's a good book called Assembly Language Step by Step - it's old and out of print, but can be bought on ebay or second hand on Amazon - it has some good stuff on getting used to hex, coding flow and an intro into some of the instructions.

  5. #20
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    what i need is book that will show me how to add assembly to c(usefully) or one that compares the two. i have one but its really old(10+ years), i still plan on reading it. i have alot of al machines around, there fun to play with.

  6. #21
    Registered User
    Join Date
    Jun 2003
    Posts
    85
    ok,
    a very good book that i recently found is the "IBM PC Assembly Language and Programming" fifth edition by Peter Abel. Check it out! here it is: http://cwx.prenhall.com/bookbind/pubbooks/abel/

    Cheers,
    Ben
    Medical Robotics: "Pursuing perfection in healthcare through innovations in robotics and information technologies for medicine and surgery."

  7. #22
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    A good book for the M68000 is The M68000 Microprocessor Family from Yu Cheng Liu. It gives a good introduction in the microprocessor architecture, the assembly language and how to use the microprocessor as a component in larger systems. It does not treat C.

    A book I have not read, but which is recommended by ACCU is 68000 Family Assembly Language from Alan Clements.
    http://www.accu.org/cgi-bin/accu/rvo...file=aa000126a

  8. #23
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    im not sure how i should learn assembly. whats a good architecture to learn on?

    i heard mips once, but i havent seen a useable setup for it(either a small/old computer of some kind of 'handy board(those things that are designed to be played with)).

    what do you guys think of the old apples(like the 2's, i think there 6502's)?

    <edit>
    i wish we had a assembly/eletrical forum now
    </edit>

  9. #24
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I would say that it would be best to learn on an Intel processor. If you don't want to mess around on a Pentium, you could get a 486 or 386 to learn with... or just an older Pentium so you don't have to worry about messing up anything on your newer one (I don't really think you would, anyway). But the Pentium introduced some new instructions to ASM, so you might want to learn on an older one... after you learn to be good with ASM on one processor, the transition to others shouldn't be too difficult.
    Away.

  10. #25
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    so the older processors arnt simplified any? i was thinking its like a console app compared to a gui...

    does linux and assembly get along? i no its supported but doesnt that mean i have to learn the api in assembly instead of the assembly?

  11. #26
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I already posted a link to FD, but since nobody reads the stickies anyway, I figured I would post this link, since I just noticed it myself. There are some things here which should be useful to you, including a link to order the IA32 books from Intel (not that you can right now...)
    http://www.flashdaddee.com/forums/sh...&threadid=1695

    >>so the older processors arnt simplified any?
    Well, they are, but not much. You could get ahold of one without MMX... and if you got an *ancient* one maybe you could ignore the floating point stuff... but you can write programs on modern processors that ignore this stuff too. I guess it's like the difference between using a simple calculator and a TI-89... you can use the 89 like a simple one and just ignore the extra functionality, but it will still be there.

    >>i have to learn the api in assembly instead of the assembly?
    I think you typoed. I think it's just a matter of calling the API functions from ASM, which shouldn't be too difficult. I'm not sure though.
    Away.

  12. #27
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Just a quick question: Why is this in the C forum? Shouldn't it be in the Tech forum or General Discussions forum?
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  13. #28
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    I think you typoed
    lol, year i cant type....

    i think ill do a old apple, just because i feel like using a klassic machine(at blazing speeds and dual 5.25 disk drives).

  14. #29
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    > im not sure how i should learn assembly. whats a good
    > architecture to learn on?

    Since you have a lot of M68000's around, I'd say use those microprocessors to learn assembly. It is a good architecture. An Intel is also fine, note that both have different assembly languages, so it might be useful to learn both and learn about the differences. But that is probably something to do later.

    First choose a microprocessor, study its architecture and assembly language, by creating simple assembly programs and then take it a step further to create more complex assembly programs and try to apply the microprocessor in some digital system. I think that is the traditional way to study a microprocessor architecture and its assembly language.

    There are free C-compilers or cross-compilers for M68000, I think there are ports of GCC for M68000.

    A reason to choose an Intel could be that those are, I think, used most in the PC-world. There's also a lot of support and free tools for them. Here are some Intel book titles:
    http://www.fetchbook.info/Intel_Fami...rocessors.html

  15. #30
    Registered User
    Join Date
    Jun 2003
    Posts
    85
    yes XSquared,
    This should have been asked in the general/Tech forum! it was my bad. sorry!

    Ben
    Medical Robotics: "Pursuing perfection in healthcare through innovations in robotics and information technologies for medicine and surgery."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Assembly
    By mrafcho001 in forum Tech Board
    Replies: 5
    Last Post: 03-12-2006, 05:00 PM
  2. C to assembly interface
    By Roaring_Tiger in forum C Programming
    Replies: 4
    Last Post: 02-04-2005, 03:51 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  5. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 03:35 AM