Quote:
Originally Posted by darkangel29
I'm using and AMD Turion x2 cpu if that matters.
|
Do you want to use x86 assembler or x86_64? (I haven't looked up "Turion" so I'm not certain it supports x86_64, but I expect it does).
You can (and maybe should) program in x86 assembler first, even if your OS kernel is x86_64. You can use x86_64 assembler only if your OS is x86_64.
Quote:
Keep in mind that I have program in C, C++, C# and Basic
|
I think the best way to use assembler is in subroutines designed with C calling conventions (which can be called easily from C++ as well). But I don't know which assembly tutorials focus on that.
Quote:
Originally Posted by snowman81
|
That is partially generic ASM and partially Motorola 68xxx ASM. It really wouldn't be very helpful to someone learning X86 or X86_64 asm.
Quote:
Originally Posted by maroonbaboon
Since you already know C, I'd suggest googling for tutorials on using in-line assembler in linux.
|
1) That would be inline assembler in GCC, not "in linux". It really doesn't matter which OS you're running GCC in. I use inline assembler in GCC in Windows XP64.
2) I find the syntax for in-line assembler very convoluted (compared to ordinary assembler). It is a useful thing to know for a C or C++ programmer writing OS code or extreme performance critical code. But I wouldn't suggest it for an ASM beginner. Learning in-line assembler first would be much harder than learning how to write whole subroutines in ASM first.
Quote:
If you want to do serious programming you probably need a book - have a look at Amazon for reviews and to see what people are buying.
|
Sorry I didn't take the time to find a good online tutorial today, but I have seen some good ones (for x86, not x86_64). I don't see any advantage to a physical book. The type of author that knows how to get a publisher interested is usually not the type of author that knows how to explain a topic like asm programming. The physical books I have seen are worse than free online alternatives.