| View previous topic :: View next topic |
| Author |
Message |
Caelestis Expert Cheater
Reputation: 0
Joined: 03 May 2007 Posts: 153
|
Posted: Sat Nov 15, 2008 9:21 pm Post subject: Few beginner assembly questions. |
|
|
I like switching between programming languages when I get bored of another. I learn Java in school, C++ at home, and since I don't know a low level language, I decided upon ASM
Is all Win32 programming the same?
Will all assemblers have the same syntax?
Which one do you think I should use? MASM?
Is this tutorial good? http://win32assembly.online.fr/tut1.html
When I'm done with Win32 programming, where do I go to learn how to hack other processes?
Is it easy to develop simple games in assembly with 3D graphics?
When deciding on which language to use, C++ for bigger projects and assembly for small speedy ones?
Thanks.
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Sun Nov 16, 2008 6:28 am Post subject: |
|
|
There are two basic types of x86 assembler syntax:
ATT syntax and Intel syntax. The kind you use in CE's auto-assembler, and most Windows based tools, is Intel syntax, but if you use GCC's assembler or NASM you use ATT syntax.
The differences are:
The order of operators is switched (Intel: MOV DEST, SRC; ATT: MOV SRC DEST).
Specifying data width is different (Intel: mov dword ptr [BAADFOOD], eax; ATT: movl ...).
The way registers are written is different (Intel: eax, ebx, etc; ATT: %eax, %ebx)
The way pointers are written is different (Intel: segment:[address+offset*width]; ATT: %segment:offset(base,index,scale)
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
Caelestis Expert Cheater
Reputation: 0
Joined: 03 May 2007 Posts: 153
|
Posted: Sun Nov 16, 2008 7:39 pm Post subject: |
|
|
Thanks
I need some clarifications on the other questions too though.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Nov 16, 2008 8:53 pm Post subject: |
|
|
You will find lots of support with MASM, however FASM is supposedly a great assembler. The linked tutorial is fine if you are learning MASM.
Your first question is vague... clarify?
_________________
|
|
| Back to top |
|
 |
Caelestis Expert Cheater
Reputation: 0
Joined: 03 May 2007 Posts: 153
|
Posted: Mon Nov 17, 2008 5:39 pm Post subject: |
|
|
I was just asking if the syntax is constant in assembly. I think nop answered it.
One more question:
Do you think I should program assembly on my TI-84 or start on windows?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Mon Nov 17, 2008 6:00 pm Post subject: |
|
|
Instruction sets are not based on OSs. They are based on processor types. Its your choice to start with whatever you want.
_________________
|
|
| Back to top |
|
 |
|