What do the brackets mean in x86 asm?

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

    It indicates that the register should be used as a pointer for the actual location, instead of acting upon the register itself.

提交回复
热议问题