Accessing a spin variable from PASM
kwinn
Posts: 8,697
HELP!!!! I am trying to access a variable in a spin program (BoomBoxController) from a PASM program (ElapsedTimer) running in another cog. I thought it would be as simple as passing the address pointer, but that does not seem to work. I have gone through the manual and several objects and tried everything suggested with no luck. You can ignore the I/O on the pins in ElapsedTimer. That was added to make sure a cog was actually started and that it ran (it did).
Probably some minor thing I missed, so I am looking forward to one of those duh!! moments.
Any help is appreciated.
Probably some minor thing I missed, so I am looking forward to one of those duh!! moments.
Any help is appreciated.
Comments
RDLONG <cog destination>,<hub source address>
WRLONG <cog source>,<hub destination address>
Are you sure? I have the above code and longs in the cog and I think it is correct.
Never mind, I see what you mean.