Hello all,
I am trying to get the address of a variable declared in C and use it in an assembly routine. What is the proper syntax!? I can't seem to find it in the mixing C/Assem manual, other docs or on Google. Here is what I'm trying to do:
myCFile.c
unsigned int myCArray[3] = {0x0001,0x0002,0x0003}; //Say the Compiler assigned this array to start at mem address 0x8000
...
myASMFile.asm
.global myCArray
...
MOV &myCArray, R15
...
In this case the value '0x0001' is moved to R15. What is the proper syntax to get the value '0x8000' into R15!? Currently I am hardcoding it so I can move forward in dev. But there has to be a simple answer here....
Thanks in advance!
-Justin Reina
*I am using Code Composer Studio