2011-12-17 15 views
1

可能重複:
What do the brackets mean in x86 asm?來源指數裝配

我一直困惑的這一段時間。 「si」和「[si]」有什麼區別? (這是使用16位NASM語法)

+3

http://stackoverflow.com/questions/2030366/what-do-the-brackets-mean-in-x86-asm同樣的問題,相當多。 – 2011-12-17 03:55:50

回答

5

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

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

mov ax, [si] // Load the value stored at address "si" into "ax". 
+0

so si,基本上是地址,[si]是這個地址指向的值? – JAW1025 2011-12-17 03:59:10