FJRusso
FJRusso

Reputation: 1

Variable Memory addressing

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.

Upvotes: 0

Views: 8

Answers (0)

Related Questions