This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工程师您好!
请如何在汇编语言中调用c语言定义的数组?最好举例说明一下,谢谢!
例如,c中定义了数组 int temp[100];
如果工程是coff格式那么 在汇编程序开头用 .global _temp 声明数组,程序中就可以引用这个数组的地址了,例如把数组地址赋值给寄存器。MVKL _temp,A1MVKH _temp,A1
如果工程是elf格式那么 在汇编程序开头用 .global temp 声明数组
MVKL temp,A1MVKH temp,A1
好的 谢谢!