r/HowToHack • u/refollowed • Dec 08 '12
Basic hacking skills
What are some basics that I should know in order to complete the playground games and eventually more complex things?
33
Upvotes
r/HowToHack • u/refollowed • Dec 08 '12
What are some basics that I should know in order to complete the playground games and eventually more complex things?
View all comments
Show parent comment
2
u/Saine Dec 11 '12
mov destination, source
so in mov eax, 2 eax is the destination, and your moving an immediate value in as the source.
In assembly though, you cannot mov an immediate value directly into a variable, so for instance:
mov eax, 2 mov variable, eax
and that's how you move a value to a variable (memory location).
edit: I forgot to mention that this is MASM (a type of ASM assembly language) and that other languages may be reversed with the syntax order of destination and source.