Tool/software: TI C/C++ Compiler
small question:
If I have:
file1.c
float myVar[2] = {1.0, 2.0};
file2.c
extern float myVar[2];
file3.asm
.global _myVar
The above works for a single float var,
Q: how do I pass an array of floats to assembler defined in a C file?
Q: how do I address the array of floats in assembler?
MOV32 DP, #_myVar
MOV32 R?H, @_myVar
this is what would be done for the single var, how would I acces the 2nd array element?
Do I just do
MOVL XAR#, #_myVar
MOV32 R?H, *XAR#+[0]
MOV32 R?H, *XAR#+[2]