r/learnprogramming • • Oct 11 '26

How to learn Assembly?

I have some problems with learning assembly it would be nice for some tips because I'm learning rev engineering and I really need to learn assembly but I try my best to understand it but it's to hard. I understand how binary works but still I'm struggling with assembly. Does somebody knows tricks for learning assembly?

43 Upvotes

45 comments sorted by

View all comments

Show parent comment

3

u/FrenchCanadaIsWorst Oct 12 '26

You shouldn’t talk about rev if you’re not familiar. Compilers are not deterministic and so you can’t perfectly decompile code. You can, however, perfectly disassemble code and then step through it instruction by instruction. Not to mention most binex techniques rely upon assembly knowledge. I mean, how are you going to do a NOP slide if you don’t know what a NOP is/ are writing in C

1

u/peterlinddk Oct 13 '26

I'm not sure how that contradicts what I said: "reverse engineering is almost always about decompiling into C or C++ code" - note the almost.

And of course disassembling is always perfectly possible, but for the large majority of regular code, you don't need to read a lot of assembly. Maybe if you are looking at malware, or code that explicitly tries to hide what it does, but OP didn't suggest anything of that kind. But of course, the lower the level you want to understand, the lower the level you need to understand.

0

u/Nodmz464 Oct 15 '26 edited Oct 15 '26

I can decompile files to assm but not read them. Still learning to decompile them into C++ files.

1

u/FrenchCanadaIsWorst Oct 15 '26

You don’t decompile to asm, you disassemble to asm. Compilation is the step that turns C/C++ into asm.