We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear all,
I'm trying to check the register values in inline-assembly in c as the below code. In especially, R0 and R1 values what I want to know which value is loaded to register. But as you can see that code, that is a In-line assembly.
Is there any way to check the register which values are loaded?
main.c
... __asm void ST0(void) { MOVS R0,#0 LDR R1,[R0] ; Get initial MSP value MOV SP, R1 LDR R1,[R0, #4] ; Get initial PC value BX R1 } ... int main (void) { ST0(); return 0; }
It's impossible.