What is the meaning of MOV (%r11,%r12,1),

后端 未结 2 1192
挽巷
挽巷 2020-11-27 08:28

What does this instruction do?

mov (%r11,%r12,1), %edx
2条回答
  •  情深已故
    2020-11-27 08:40

    Look here. It says

    In the AT&T Syntax, memory is referenced in the following way,

    segment-override:signed-offset(base,index,scale)
    

    Down on the page there are some examples. I find this the best:

    GAS memory operand   NASM memory operand
    ------------------   -------------------
    (%ecx,%ebx,2)    [ecx+ebx*2]
    

    mov source, destination in AT&T syntax copies the value from source to destination. Also consider the size of edx. How many bytes (4) do you think mov will copy ?

提交回复
热议问题