你好!
我使用该型号的板子,用ARM汇编指令进行编程。目的是:将0x1234这个值,写入到地址为0x40070110这个寄存器中。我的写法如下:
asm(" mov r0, #0x40070110");
asm(" mov r1, #0x1234");
asm(" str r1, [r0]");
但是最终编译报出错误:
[E0004] Invalid Immediate operand
mov r0, #0x40070110
请问到底是哪里错误了?我应该怎么解决?
谢谢!
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.
你好!
我使用该型号的板子,用ARM汇编指令进行编程。目的是:将0x1234这个值,写入到地址为0x40070110这个寄存器中。我的写法如下:
asm(" mov r0, #0x40070110");
asm(" mov r1, #0x1234");
asm(" str r1, [r0]");
但是最终编译报出错误:
[E0004] Invalid Immediate operand
mov r0, #0x40070110
请问到底是哪里错误了?我应该怎么解决?
谢谢!