This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil uvision 5.22 inline assembly and main cpu register access

Hello
How to write inline assembly code in c file and access cpu R0-R31 registers?
I write something like:
__asm{

STRB R0,[R2,0#02]

}

but i face errors: expected [ or ].
Thanks.

Parents Reply Children