Possible Duplicate:
What do the brackets mean in x86 asm?
I've been confused about this for a while. What is the difference between "si" and "[si]"? (This is using 16-bit NASM syntax)
Possible Duplicate:
What do the brackets mean in x86 asm?
I've been confused about this for a while. What is the difference between "si" and "[si]"? (This is using 16-bit NASM syntax)
si
refers to the register si
. [si]
refers the address pointed to by si
.
mov ax, si // Copy the "si" to "ax".
mov ax, [si] // Load the value stored at address "si" into "ax".