I'm trying to figure out a way to use a number, stored in a symbol ( for example @50, D=A, @addr, M=D ) as the memory address which I want to change next.
Or in other words whatever value "addr" has, I would like to change the memory address, matching this value. If addr = 50 I'd like to set whatever is in the 50th memory location to a new value.
As you said,
] = 50.
An address stored in a variable is called a pointer
. To use the pointer stored in RAM[addr
], you need to load that pointer into the A register.