汇编代码
IMPORT Main
EXPORT add
area init,code,readonly
entry
code32
START
b Main
add
add r0,r0,r1
mov pc,lr
end
C代码
extern unsigned int add(unsigned int x,unsigned int y);
void Main(void)
{
unsigned int n1 = 100;
unsigned int n2 = 200;
unsigned int sum=0;
sum=add(n1,n2);
}
我的问题是,在C中调用ADD函数sum=add(n1,n2);他…