2

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)

Community
  • 1
  • 1
JAW1025
  • 676
  • 2
  • 8
  • 17

1 Answers1

6

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".
Mysticial
  • 464,885
  • 45
  • 335
  • 332