Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

assembly

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

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++.

Name: Anonymous 2011-01-18 18:44

Have you tried an ENTERPRISE-GRADE modern search technology, such as bing

Name: Anonymous 2011-01-18 18:47

>>1
main(){return 0;}

_start: xor eax, eax
        ret


OMG HUMAN COMPILER!!!

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

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.

Name: Anonymous 2011-01-18 20:08

your compiler can output assembly, you dumbshit

Name: Anonymous 2011-01-18 20:14

>>5
Is 20:00 pm a real time?

Name: Anonymous 2011-01-18 21:04

- Compile arbitrary C program.
- Disassemble resulting binary and inspect.
- Repeat until Satori is achieved.

Name: Anonymous 2011-01-18 21:42

>>9
-S

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/

Don't change these.
Name: Email:
Entire Thread Thread List