What do the brackets mean in x86 asm?

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

    Direct memory addressing - al will be loaded with the value located at memory address L1.

提交回复
热议问题