Re: POINTER (What is it ) ?
Posted by
ivant on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/POINTER-What-is-it-tp4032444p4032449.html
Minoshi wrote
so basically it is just a value in a register that is interpreted as address of some other register .?
Or in a memory register.
Minoshi wrote
@x // Stores in register A the address of x
D=A
@0
M=D
now register 0 has value x in it .So how can i get the data stored in Register x using register 0 . This is what pointer application is right .?
You can get the value through the M pseudo-register:
D=M