I am trying to learn assembly coding for arm cortex m4.
__asm volatile (
" LDR r0,=MY_NUM \n" /* Restore the context. */
" \n"
".align 2 \n"
"MY_NUM: .word 0x12345678 \n"
);
I am getting "error #29 : expected an expression" at the ldr instruction. How to resolve it?