lea RAX var
mov [RAX] 12
If RAX is now pointing to the address of the 'var' variable. then what does [RAX] mean. ?
lea RAX var
mov [RAX] 12
If RAX is now pointing to the address of the 'var' variable. then what does [RAX] mean. ?
I am assuming you’re asking about Intel-style x86 assembly. Square brackets means ‘the variable at the memory address stored in RAX”.
So:
mov RAX, 12
means “store value 12 into RAX”
mov [RAX], 12
means “store value 12 in the memory cell whose address is stored in RAX’