title: how to get address of variable and dereference it in nasm x86 assembly?
body: <p>in c language we use <b>&amp;</b> to get the address of a variable and <b>*</b> to dereference the variable.<br><pre><code>
      int variable=10; 
      int *pointer;
      pointer = &variable;</pre></code><br>
  How to do it in nasm x86 assembly language.<br>
  i read nasm manual and found that [ variable_address ] works like dereferencing.( i maybe wrong ). <br><br></p>
  
  <pre><code>section .data
  variable db 'A'
  section .text
  global _start
  _start:
  mov eax , 4
  mov ebx , 1
  mov ecx , [variable]  
  mov edx , 8
  int 0x80
  mov eax ,1
  int 0x80
  </code></pre>
  
  <p><br><br>
     i executed this code it prints nothing. i can't understand what is wrong with my code.
   need your help to understand pointer and dereferencing in nasm x86.</p>