汇编中的源索引

JAW*_*025 2 assembly nasm 16-bit

可能重复:
括号在x86 asm中的含义是什么?

我有一段时间对此感到困惑."si"和"[si]"有什么区别?(这是使用16位NASM语法)

Mys*_*ial 6

si指寄存器si.[si]指的是指向的地址si.

mov ax, si    //  Copy the "si" to "ax".

mov ax, [si]  //  Load the value stored at address "si" into "ax".
Run Code Online (Sandbox Code Playgroud)