assembly
1
Name:
Anonymous
2011-01-18 18:37
Hi, where could i find a tutorial with more examples like this ?
A=0; C++
MOV A,0 ASM
A++; C++
inc A ASM
A=A+B; C++
add A,B ASM
A=B*6; C++
mov eax,B
imul eax,6
mov A,eax ASM
2
Name:
Anonymous
2011-01-18 18:43
Stop what you're doing now and start over. You can't go very far with an understanding of x86 by analogy with C++.
3
Name:
Anonymous
2011-01-18 18:44
Have you tried an ENTERPRISE-GRADE modern search technology, such as bing
4
Name:
Anonymous
2011-01-18 18:47
>>1
main(){return 0;}
_start: xor eax, eax
ret
OMG HUMAN COMPILER!!!
5
Name:
Anonymous
2011-01-18 18:47
I don't really need to learn asm, just some inline asm.
I's 1:46 AM, i'm searching on google for a tutorial like this since 20:00 pm
6
Name:
Anonymous
2011-01-18 19:37
>>5
Read the instruction set of your processor, attempting to learn assembly languages in terms of C++ is a bad idea.
7
Name:
Anonymous
2011-01-18 20:08
your compiler can output assembly, you dumbshit
8
Name:
Anonymous
2011-01-18 20:14
>>5
Is 20:00 pm a real time?
9
Name:
Anonymous
2011-01-18 21:04
- Compile arbitrary C program.
- Disassemble resulting binary and inspect.
- Repeat until Satori is achieved.
10
Name:
Anonymous
2011-01-18 21:42
11
Name:
Anonymous
2011-01-19 3:21
>>10
-S is awesome. Combined with LLVM, it can generate asm code for dozens of architectures.
Though after looking through them I have feeling that most of RISC can be translated from one to another simply by used s/command name in proc1/command name in proc2/