Vignesh Alagappan

using array declared in "C" code in assembly for S12X

Discussion created by Vignesh Alagappan on Jun 16, 2008
Latest reply on Jun 24, 2008 by Xbot
Hi,
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[10]; //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
 
Question:
1. Is it possible to perform step2 above?
2. If its possible, can I have a short example for same.
 
Regards
Vicky

Outcomes