What do the brackets mean in x86 asm?

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

    [L1] means the memory contents at address L1. After running mov al, [L1] here, The al register will receive the byte at address L1 (the letter 'w').

提交回复
热议问题