This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

passing array to inline assembly

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

0