我使用TI官方的编译工具链进行代码开发,发现在.asm汇编代码中无法使用类似于ldr r0, =function这样的伪指令将函数地址保存至r0寄存器(function是位于其他源文件中的函数),代码如下所示:

编译上面代码会报错,提示line11与line14有错误
请问我写的这段代码应该如何修改?
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.
我使用TI官方的编译工具链进行代码开发,发现在.asm汇编代码中无法使用类似于ldr r0, =function这样的伪指令将函数地址保存至r0寄存器(function是位于其他源文件中的函数),代码如下所示:

编译上面代码会报错,提示line11与line14有错误
请问我写的这段代码应该如何修改?
请参考一下这个手册:zhcuav7z_ARM 汇编语言工具 v20.2.0.LTS (Rev. Z)