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
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.