Variable Memory addressing

18 Views Asked by At

Using NASM I have: VAR DW 0000 memptr: times 1024 DB 0H

I want to use VAR as a pointer into the block of memory memptr

  1. How do I load VAR with the address of memptr + 1023 ?
  2. MOV [VAR] , EAX ; Correct me here, this moves the content of EAX into the memory location pointed to by VAR or into VAR ?

Tried nearly everything I can thing of.

0

There are 0 best solutions below