title: Declaring a pointer in nasm
body: <p>I am writing a simple os in nasm and I am new to assembly. From c I am used to be able to declare pointers without reserving memory for them and moving them around as I please. How can I do this in nasm? If I declare a variable e.g. by </p>
  
  <pre><code>var: resb 1
  </code></pre>
  
  <p>I understand that I declare a pointer and can access the value of the variable e.g. by</p>
  
  <pre><code>mov eax, [var]
  </code></pre>
  
  <p>Though, I cannot move the pointer to another address by</p>
  
  <pre><code>mov var, 0x1234
  </code></pre>
  
  <p>then I get "invalid combination of opcode and operands". So how can I declare and move pointers in memory?</p>