Basic use of immediates vs. square brackets in YASM/NASM x86 assembly
The square brackets essentially work like a dereference operator (e.g., like * in C). So, something like mov REG, x moves the value of x into REG, whereas mov REG, [x] moves the value of the memory location where x points to into REG. Note that if x is a label, its value is the … Read more