I'm trying to store a pointer in a variable located on memory. How could I dereference it? I'm trying to do it like this:
pointer: db 0 ; the pointer variable
var: db 44 ; the normal variable
dereferenced: db 0 ; the result of dereferencing the value on `pointer`
start:
  mov al, var ; move `var`'s address to `al` register
  mov [pointer], al ; storing the previously moved `var`'s address on `pointer`
  ; dereferencing should go here
PS: I'm using nasm on Linux
I've already tried [[pointer]] but it gives me an error.
PPS: The error is only when trying to dereference.
 
     
    