I have a requirement which is quite different which i never used earlier.
1. Declared a array in a file, test1.c
unsigned int Store; //Assume unsigned int takes 2 bytes of data
2. Now, I need to update store array with content of PC, SP, X, Y and other registers. //Assume, Store variable and copy logic would be in same file. I hope it should not be issue either
1. Is it possible to perform step2 above?
2. If its possible, can I have a short example for same.