What do the brackets mean in x86 asm?

前端 未结 8 1887
旧时难觅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:14

    Simply means to get the memory at the address marked by the label L1.

    If you like C, then think of it like this: [L1] is the same as *L1

提交回复
热议问题