What do the brackets mean in x86 asm?

前端 未结 8 1888
旧时难觅i
旧时难觅i 2020-11-30 20:51

Given the following code:

L1     db    \"word\", 0

       mov   al, [L1]
       mov   eax, L1

What do the brackets ([L1]) represent?

8条回答
  •  眼角桃花
    2020-11-30 21:20

    The brackets mean to de-reference an address. For example

    mov eax, [1234]
    

    means, mov the contents of address 1234 to EAX. So:

    1234 00001
    

    EAX will contain 00001.

提交回复
热议问题