Gecko Registers help.

Started by strakn, March 22, 2011, 03:53:27 PM

Previous topic - Next topic

strakn

How would you put the value stored in one gecko register to the address stored in another gecko register?

dcx2

Yanno, I thought this would be easier than it is, but I guess not.

Let's say the value is in gr1, and you want to write it to the pointer in gr2

Move gr2 to the po (NOT ba) with 4A001 code

Now you can use a 94T1 (T = 2) code to write gr1 to [po]

Don't forget the full terminator

4A001002 00000000 # po = gr2
94210001 00000000 # [po] = gr1
E0000000 80008000 # reset po