06-C++ Basic Grammar (Basic Assembly Comprehension)

mov dest src

        Assign the content of src to dest, similar to dest = src

[address value]

        The square brackets [ ] are all memory addresses

word is 2 bytes, dword is 4 bytes (double wprd), qword is 8 bytes (quad word)

call function address

        call function
lea dest, [address value]

        Assign the address value to dest, similar to dest = address value

The ret
        function returns  

xor  op1,op2

        Assign the XOR result of op1 and op2 to op1, similar to op1 = op1^op2

add op1,op2

        Something like op1 = op1 + op2

under op1,op2

        Similar to op1 = op1- op2
inc op

        auto-increment, similar to op = op + 1

dec op

        Decrement by mouth, similar to op = op - 1

jmp memory address

         Jump to a memory address to execute code

        Those starting with j are generally jumps, most of which are conditional jumps, and are generally used in conjunction with test, cmp and other instructions

Guess you like

Origin blog.csdn.net/qq_56728342/article/details/129598513