i am sending details of my problem,i want to send array values stored in c function to inline assembly created in separate file .i have array declared in main file as extern like below
extern unsigned char read_val[3];
and in assembly i have used
mov r0, read_val[0] mov r1,read_val[1] mov r2,read_val[3] between # pragma asm &#pragma endasm Also i have to pass value stored im memoty locations k1 EQU 14H K2 EQU 15H K3 EQU 16H K4 EQU 17H to c function in main file
... values stored in c function to inline assembly created in separate file... "
What is the point of having "inline" assembly is in a separate file?!
Surely, if it's in a separate file you're going to have to Call it anyway - so why not just make it proper assembler?!